math.mMax() function
The math.mMax()
function returns the larger of x
or y
.
Output data type: Float
import "math"
math.mMax(x: 1.23, y: 4.56)
// Returns 4.56
Parameters
x
The X value used in the operation.
y
The Y value used in the operation.
Special cases
math.mMax(x:x, y:+Inf) // Returns +Inf
math.mMax(x: +Inf, y:y) // Returns +Inf
math.mMax(x:x, y: NaN) // Returns NaN
math.mMax(x: NaN, y:y) // Returns NaN
math.mMax(x: +0, y: ±0) // Returns +0
math.mMax(x: ±0, y: +0) // Returns +0
math.mMax(x: -0, y: -0) // Returns -0
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.