Core Function Ceiling
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> Ceiling( <expression> ) </pre> === Description === Returns a number rounded up to the next integer. === expression === Any valid numeric expression. === Return Value =...")
Newer edit →
(Created page with "<pre> Ceiling( <expression> ) </pre> === Description === Returns a number rounded up to the next integer. === expression === Any valid numeric expression. === Return Value =...")
Newer edit →
Revision as of 19:31, 29 November 2011
Ceiling( <expression> )
Contents |
Description
Returns a number rounded up to the next integer.
expression
Any valid numeric expression.
Return Value
Success: Returns the smallest integer greater than or equal to the specified value.
Failure: Returns 0.
Some Examples
$x = Ceiling(5.25); printf($x); // Prints 6