math.mMin() function

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

Output data type: Float

import "math"

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

// Returns 1.23



The X value used in the operation.


The Y value used in the operation.

Special cases

math.mMin(x:x, y: -Inf) // Returns -Inf
math.mMin(x: -Inf, y:y) // Returns -Inf
math.mMin(x:x, y: NaN)  // Returns NaN
math.mMin(x: NaN, y:y)  // Returns NaN
math.mMin(x: -0, y: ±0) // Returns -0
math.mMin(x: ±0, y: -0) // Returns -0

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.