The largest representable number. |
|
The smallest representable number. |
|
Special value representing negative infinity; returned on overflow. |
|
Special "not a number" value. |
|
Special value representing infinity; returned on overflow. |
|
|
Returns a string representing the number in exponential notation. |
|
Returns a string representing the number in exponential notation. |
|
Returns a string representing the number in fixed-point notation. |
|
Returns a string representing the number in fixed-point notation. |
|
Converts the number into a string which is suitable for presentation in the given locale. |
|
Returns a string representing the number to a specified precision in fixed-point or exponential notation. |
|
Returns a string representing the number to a specified precision in fixed-point or exponential notation. |
|
Returns a string representing the specified Number object. |
|
Returns a string representing the specified Number object. |
|
|
The largest representable number. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample application.output("Largest number: " + Number.MAX_VALUE); |
|
|
|
|
The smallest representable number. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample application.output("Smallest number: " + Number.MIN_VALUE); |
|
|
|
|
Special value representing negative infinity; returned on overflow. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample application.output("Negative infinity: " + Number.NEGATIVE_INFINITY); |
|
|
|
|
Special "not a number" value. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample application.output("NaN: " + Number.NaN); |
|
|
|
|
Special value representing infinity; returned on overflow. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample application.output("Positive infinity: " + Number.POSITIVE_INFINITY); |
|
|
|
|
|
Returns a string representing the number in exponential notation. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var n = 123.45678;
application.output(n.toExponential(3)); |
|
|
|
|
toExponential(fractionDigits) |
|
Returns a string representing the number in exponential notation. |
|
|
Parameters An integer specifying the number of digits after the decimal point. Defaults to as many digits as necessary to specify the number. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var n = 123.45678;
application.output(n.toExponential(3)); |
|
|
|
|
Returns a string representing the number in fixed-point notation. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var n = 123.45678;
application.output(n.toFixed(3)); |
|
|
|
|
Returns a string representing the number in fixed-point notation. |
|
|
Parameters The number of digits to appear after the decimal point. Defaults to 0. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var n = 123.45678;
application.output(n.toFixed(3)); |
|
|
|
|
Converts the number into a string which is suitable for presentation in the given locale. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var n = 1000000;
application.output(n.toLocaleString()); |
|
|
|
|
Returns a string representing the number to a specified precision in fixed-point or exponential notation. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var n = 123.45678;
application.output(n.toPrecision(5)); |
|
|
|
|
Returns a string representing the number to a specified precision in fixed-point or exponential notation. |
|
|
Parameters An integer specifying the number of significant digits. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var n = 123.45678;
application.output(n.toPrecision(5)); |
|
|
|
|
Returns a string representing the specified Number object. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var n = 7;
application.output(n.toString()); //displays "7"
application.output(n.toString(2)); //displays "111" |
|
|
|
|
Returns a string representing the specified Number object. |
|
|
Parameters An integer between 2 and 36 specifying the base to use for representing numeric values |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var n = 7;
application.output(n.toString()); //displays "7"
application.output(n.toString(2)); //displays "111" |
|
|
|
|
|
|