May 2001
Intermediate to advanced
720 pages
23h 24m
English
Math.ceil( ) Method — round a number up to the next integer
Flash 5; may be used when exporting Flash 4 movies
Math.ceil(x)
A number.
The next integer greater than or equal to
x.
The ceil( ) (i.e., ceiling) method converts a
floating-point number to the first integer greater than or equal to
x.
Math.ceil(1.00001); // Returns 2 Math.ceil(5.5); // Returns 6 Math.ceil(-5.5); // Returns -5
Math.floor( ), Math.round( )
Read now
Unlock full access