php man page for ceil

Query: ceil

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CEIL(3) 								 1								   CEIL(3)

ceil - Round fractions up

SYNOPSIS
float ceil (float $value)
DESCRIPTION
Returns the next highest integer value by rounding up $value if necessary.
PARAMETERS
o $value - The value to round
RETURN VALUES
$value rounded up to the next highest integer. The return value of ceil(3) is still of type float as the value range of float is usually bigger than that of integer.
EXAMPLES
Example #1 ceil(3) example <?php echo ceil(4.3); // 5 echo ceil(9.999); // 10 echo ceil(-3.14); // -3 ?>
SEE ALSO
floor(3), round(3). PHP Documentation Group CEIL(3)
Related Man Pages
ceill(3m) - sunos
floor(3m) - ultrix
ceil(3m) - opensolaris
ceilf(3m) - opensolaris
ceill(3m) - opensolaris
Similar Topics in the Unix Linux Community
math.h: float ceilf(float x)
How to get the ceiling value for floating numbers?
CEILING and FLOOR functions
Ceil not working as function in awk statement
Rounding off a decimal