Floor

From Mesham
Revision as of 12:44, 13 January 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 integer representing the floor

Example

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