WMLPrograming list

The Wireless FAQ

10.3 Which functions are available in the WMLscript Float library?

The following functions are available in the Float library. Note that this is meant as a basic introduction and a quick reference. The authoritative source on WMLscript is WAPforum and the latest approved WMLscript reference is available here.

The functions in this section are accessed by Float.functionName

int(number) returns the integer part of number

floor(number1) returns the integer value closest but not greater than number

cail(number1) returns the integer value closest but not less than number

pow(number1,number2) returns the value of number1 raised to the power of number2

round(number) returns the value of number rounded to the closest integer value

sqrt(float) returns the square root of float

maxFloat() returns maximum supported floating point value

minFloat() returns minimum supported floating point value

[ Main ]   [ 10 - WMLscript in detail ]