maxv(var x,var y)
Returns the maximum of x and y.
Parameters:
x, y - variables or numbers
Returns:
x if x >= y
y if y > x
Speed:
FastExamples:
x = maxv(8, 5); // x is 8
x = maxv(2,2); // x is 2
x = maxv(-5,10); // x is 10
x = maxv(10, x); // x can't be higher than a
x = maxv(0,(minv(x,10))) // x will be limited between 0 and 10
See also:
minv, clamp
► latest
version online