Difference between revisions of "Ceil"

From Mesham
Jump to navigationJump to search
m
m (4 revisions imported)
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
  
 
  #include <maths>
 
  #include <maths>
  var a:=ceil(10.5);
+
   
var y:=ceil(a);
+
function void main() {
 +
    var a:=ceil(10.5);
 +
    var y:=ceil(a);
 +
};
  
 
''Since: Version 0.41b''
 
''Since: Version 0.41b''

Latest revision as of 15:44, 15 April 2019

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