WMLScript max() Function
Complete WMLScript Lang Library
The max() function returns the number with the highest value of x and y.
Syntax
Part |
Description |
n |
The number returned from the function |
x |
A number |
y |
A number |
Example
var a = Lang.max(20, 40.3);
var b = Lang.max(60, 59.7);
|
Result
Complete WMLScript Lang Library
|
|
|