float ceil ( float num ) rounds parameter to the nearest integer above its current value : ceil « Math « PHP
- PHP
- Math
- ceil
float ceil ( float num ) rounds parameter to the nearest integer above its current value
<?
$number = ceil(11.9); // 12
$number = ceil(11.1); // 12
$number = ceil(11); // 11
?>
Related examples in the same category