docs-v2/content/v2.0/reference/flux/functions/math/m_min.md

721 B

title description menu weight
math.m_min() function The math.m_min() function returns the smaller of `x` or `y`.
v2_0_ref
name parent
math.m_min Math
301

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

Output data type: Float

import "math"

math.m_min(x: 1.23, y: 4.56)

// 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

Min(x:x, y: -Inf) // Returns -Inf
Min(x: -Inf, y:y) // Returns -Inf
Min(x:x, y: NaN)  // Returns NaN
Min(x: NaN, y:y)  // Returns NaN
Min(x: -0, y: ±0) // Returns -0
Min(x: ±0, y: -0) // Returns -0