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.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License