Difference between revisions of "Ceil"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This ceil(d) function will find the smallest integer greater than or equal to ''d''. * '''Pass:''' A double to find the ceil of * '''Returns:''' An integer repres…')
 
m
Line 2: Line 2:
 
This ceil(d) function will find the smallest integer greater than or equal to ''d''.
 
This ceil(d) function will find the smallest integer greater than or equal to ''d''.
  
* '''Pass:''' A double to find the ceil of
+
* '''Pass:''' A [[Double]] to find the ceil of
* '''Returns:''' An integer representing the ceiling
+
* '''Returns:''' An [[Int]] representing the ceiling
  
 
== Example ==
 
== Example ==
Line 10: Line 10:
 
  var a:=ceil(10.5);
 
  var a:=ceil(10.5);
 
  var y:=ceil(a);
 
  var y:=ceil(a);
 +
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 18:29, 13 January 2013

Overview

This ceil(d) function will find the smallest integer greater than or equal to d.

  • Pass: A Double to find the ceil of
  • Returns: An Int representing the ceiling

Example

#include <maths>
var a:=ceil(10.5);
var y:=ceil(a);

Since: Version 0.41b