Float.maxFloat Lang.min Float.minFloat FUNCTION:  Lang.max Lang.max(value1, value2)   The Lang.max function compares two given numbers and then returns the larger value. If the two numbers prove to be equal, the first number is selected. The value and type (floating-point or integer) of the selected number is not changed.   The mandatory value1 parameter can be any positive or negative single-precision floating-point number or any positive or negative integer number (including zero). The floating-point number must reside on or between the largest number and the smallest nonzero number supported by the browser. These boundary values can be determined using the Float.maxFloat and Float.minFloat functions. The integer number must reside on or between the largest positive integer and the largest negative integer supported by the browser. These boundary values can be determined by using the Lang.maxInt and Lang.minInt functions.   The mandatory value2 parameter can be any positive or negative single-precision floating-point number or any positive or negative integer number (including zero). The floating-point number must reside on or between the largest number and the smallest nonzero number supported by the browser. These boundary values can be determined using the Float.maxFloat and Float.minFloat functions. The integer number must reside on or between the largest positive integer and the largest negative integer supported by the browser. These boundary values can be determined by using the Lang.maxInt and Lang.minInt functions.   Code for MaxExample.wml

max example

1st number = \$(number1)
2cd number = \$(number2)
maximum number = \$(maxnumber)

Code for MaxExample.wmls extern function findmax() {    var result1 = Dialogs.prompt("Enter 1st number", "");    var result2 = Dialogs.prompt("Enter 2cd number", "");    var maxnum = Lang.max(result1, result2);    WMLBrowser.setVar("number1", result1);    WMLBrowser.setVar("number2", result2);    WMLBrowser.setVar("maxnumber", maxnum);    WMLBrowser.go("MaxExample.wml#card2"); }; Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved. Trademark Information