Floor

From Mesham
Revision as of 14:34, 15 April 2013 by Polas (talk | contribs)
Jump to navigationJump to search

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>

function void main() {
   var a:=floor(10.5);
   var y:=floor(a);
};

Since: Version 0.41b