Difference between revisions of "Floor"

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

Revision as of 18:32, 13 January 2013

Overview

This floor(d) function will find the largest integer less than or equal to d.

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

Example

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

Since: Version 0.41b