max

Returns the larger of two floating point numbers.

float max(float number, float number)

number is a number you want to compare.

Examples

max(7.2,-3.2)

Returns 7.2.

Desk.height = -2;
Lamp.height = 9;
$Mylight = max(Desk.height,Lamp.height);

Sets $Mylight to 9.