changeset 450:048dcc02bdbe

Add floor
author Chris Cannam
date Thu, 24 Oct 2013 11:12:16 +0100
parents ea95ee1cb3a6
children c80c82319ad1
files src/may/mathmisc.yeti
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/may/mathmisc.yeti	Thu Oct 24 11:12:07 2013 +0100
+++ b/src/may/mathmisc.yeti	Thu Oct 24 11:12:16 2013 +0100
@@ -28,6 +28,9 @@
         int (x + 0.5)
     fi;
 
+floor x =
+    Math#floor(x);
+
 ceil x =
     Math#ceil(x);
 
@@ -59,6 +62,7 @@
     factorial,
     pow,
     round,
+    floor,
     ceil,
     isPowerOfTwo,
     nextPowerOfTwo,