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 upSYNOPSISfloat ceil (float $value)DESCRIPTIONReturns the next highest integer value by rounding up $value if necessary.PARAMETERSo $value - The value to roundRETURN 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.EXAMPLESExample #1 ceil(3) example <?php echo ceil(4.3); // 5 echo ceil(9.999); // 10 echo ceil(-3.14); // -3 ?>SEE ALSOfloor(3), round(3). PHP Documentation Group CEIL(3)
Related Man Pages |
---|
ceill(3) - redhat |
ceil(3m) - sunos |
ceil(3m) - opensolaris |
ceill(3m) - opensolaris |
round(3) - php |
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 |