Difference between revisions of "$ceil"

From Scriptwiki
Jump to: navigation, search
(typo..)
m
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
== Examples ==
 
== Examples ==
  
  $ceil([[$pi]]) - will return ''4''
+
  $ceil([[$pi]]) ;will return ''4''
  $ceil(-4,99) - will return ''-4''
+
  $ceil(-4.99) ;will return ''-4''
  
 
== See Also ==
 
== See Also ==
 
+
* [[$round]]
[[$round]], [[$floor]] and [[$int]].
+
* [[$floor]]  
 +
* [[$int]]
  
 
[[Category:Text and Number Identifiers]]
 
[[Category:Text and Number Identifiers]]

Latest revision as of 11:02, 2 July 2007

Returns N rounded to the next highest integer.

$ceil(N)
  • N is the number you want to round up to its next integer.

Examples

$ceil($pi)  ;will return 4
$ceil(-4.99)  ;will return -4

See Also