Difference between pages "Download all" and "Ceil"

From Mesham
(Difference between pages)
Jump to navigationJump to search
m (1 revision imported)
 
 
Line 1: Line 1:
#REDIRECT [[Download 0.4 beta]]
+
== 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>
 +
function void main() {
 +
    var a:=ceil(10.5);
 +
    var y:=ceil(a);
 +
};
 +
 
 +
''Since: Version 0.41b''
 +
 
 +
[[Category:Function Library]]
 +
[[Category:Maths Functions]]

Revision as of 14:30, 15 April 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>
function void main() {
   var a:=ceil(10.5);
   var y:=ceil(a);
};

Since: Version 0.41b