October 2005
Intermediate to advanced
372 pages
11h 35m
English
ceil()
float ceil ( float num )The ceil()
function takes a floating-point number as its only parameter and rounds it to the nearest integer above its current value. If you provide an integer, nothing will happen. For example:
$number = ceil(11.9); // 12
$number = ceil(11.1); // 12
$number = ceil(11); // 11