Skip to content

vector.ClampFMode enum

← Attribute reference

Floating-point clamp NaN and comparison policy.

Cases

Keyword Value Description
ordered 0 Clamp with ordered comparisons and selects; NaN comparisons are false.
number 1 Clamp as minnum(maxnum(value, lower), upper); NaNs select the numeric peer.
ieee 2 Clamp as minimum(maximum(value, lower), upper); NaNs propagate.

Used by

  • vector.clampf.mode