ceil()


float ceil ( float $value )

Description

ceil() rounds fractions up

※ available F/W version : all

Parameters

Return values

Returns the next highest integer value by rounding up value if necessary

Example

<?php
$val = 3.14;

$ret = ceil($val);
echo "ret = $ret\r\n";  // OUTPUT: ret = 4
?>

See also

floor() / round()

Remarks

This function is identical to the PHP group’s ceil() function.