Core Function Ceiling

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> Ceiling( <expression> ) </pre> === Description === Returns a number rounded up to the next integer. === expression === Any valid numeric expression. === Return Value =...")
 
m (1 revision)
 
(3 intermediate revisions by one user not shown)
Line 7: Line 7:
 
Returns a number rounded up to the next integer.
 
Returns a number rounded up to the next integer.
  
=== expression ===
+
=== Parameters ===
 +
 
 +
==== expression ====
  
 
Any valid numeric expression.
 
Any valid numeric expression.
Line 17: Line 19:
 
Failure: Returns 0.
 
Failure: Returns 0.
  
==== Some Examples ====
+
=== Example ===
  
 
<syntaxhighlight lang="sputnik">
 
<syntaxhighlight lang="sputnik">

Latest revision as of 12:38, 14 June 2015

Ceiling( <expression> )

Contents

Description

Returns a number rounded up to the next integer.

Parameters

expression

Any valid numeric expression.

Return Value

Success: Returns the smallest integer greater than or equal to the specified value.

Failure: Returns 0.

Example

$x = Ceiling(5.25);
printf($x); // Prints 6
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox