math.mMin() function

The math.mMin() function returns the smaller of x or y.

*Output data type: Float*

  1. import "math"
  2. math.mMin(x: 1.23, y: 4.56)
  3. // Returns 1.23

Parameters

x

The X value used in the operation.

*Data type: Float*

y

The Y value used in the operation.

*Data type: Float*

Special cases

  1. math.mMin(x:x, y: -Inf) // Returns -Inf
  2. math.mMin(x: -Inf, y:y) // Returns -Inf
  3. math.mMin(x:x, y: NaN) // Returns NaN
  4. math.mMin(x: NaN, y:y) // Returns NaN
  5. math.mMin(x: -0, y: ±0) // Returns -0
  6. math.mMin(x: ±0, y: -0) // Returns -0