September 2000
Intermediate to advanced
608 pages
12h 59m
English
The Float library contains functions used to manipulate floating point numbers.
Description: This function returns the smallest integer not less than the specified value.
Syntax: Float.ceil(value)
Example: The following example converts a floating point number to the smallest integer value not less than itself:
// Convert to integer var b=Float.ceil(a);
Description: This function returns the largest integer not greater than the specified value.
Syntax: Float.floor(value)
Example: The following example converts a floating point number to the largest integer value not greater than itself:
// Convert to integer var b=Float.floor(a);
Description: Returns the integer portion of floating-point value.
Syntax: Float.int(value) ...
Read now
Unlock full access