STANDARD LIBRARY: Float
The Float Library contains eight
functions. Six of these functions perform a variety of mathematic procedures
and the other two functions return information about numeric boundaries
set by the browser.
Of the six WMLScript standard libraries, only the implementation of the
Float Library is considered optional. All eight functions require
that the browser be able to support floating-point arithmetic operations.
If the browser does not recognize floating-point, then these functions
cannot perform their purpose and they will all return invalid.
The Lang Library contains several functions that perform related
tasks regarding integer and floating-point numbers.
The library and function names are case senstive.
The eight functions are:
Rounds a floating-point number up to the next larger integer value.
Rounds a floating-point number down to the next smaller integer value.
Returns the integer portion of a floating-point number.
Returns the largest floating-point number supported by the browser.
Syntax: Float.maxFloat( )
Returns the smallest nonzero floating-point number supported by the browser.
Syntax: Float.minFloat( )
Raises a floating-point or integer number up to a power.
Rounds a floating-point number up or down to the nearest integer.
Returns the square root of a floating-point or integer number.
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.