From e57c4ec1f209a7ce1d10bb60ef27d545f604449c Mon Sep 17 00:00:00 2001
From: William Ferguson <wferguson@scottlogic.com>
Date: Fri, 25 Jul 2014 08:45:23 +0100
Subject: [PATCH] Fix: PID 24976765 Issue
 https://github.com/WPFerg/scratch-html5/issues/16

---
 js/primitives/Primitives.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/js/primitives/Primitives.js b/js/primitives/Primitives.js
index 4477abd..62f9298 100644
--- a/js/primitives/Primitives.js
+++ b/js/primitives/Primitives.js
@@ -100,6 +100,8 @@ Primitives.prototype.primMathFunction = function(b) {
         case 'log': return Math.log(n) / Math.LN10;
         case 'e ^': return Math.exp(n);
         case '10 ^': return Math.exp(n * Math.LN10);
+        case 'floor': return Math.floor(n);
+        case 'ceiling': return Math.ceil(n);
     }
     return 0;
 }