Float.minFloat Float.maxFloat Lang.max FUNCTION:  Lang.min Lang.min(value1, value2)   The Lang.min function compares the given numbers and then returns the smaller 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 MinExample.wml

mins example

1st number = \$(number1)
2cd number = \$(number2)
minimum number = \$(minnumber)

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