Fix: PID 24976765 Issue https://github.com/WPFerg/scratch-html5/issues/16
This commit is contained in:
parent
968baec89f
commit
e57c4ec1f2
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ Primitives.prototype.primMathFunction = function(b) {
|
||||||
case 'log': return Math.log(n) / Math.LN10;
|
case 'log': return Math.log(n) / Math.LN10;
|
||||||
case 'e ^': return Math.exp(n);
|
case 'e ^': return Math.exp(n);
|
||||||
case '10 ^': return Math.exp(n * Math.LN10);
|
case '10 ^': return Math.exp(n * Math.LN10);
|
||||||
|
case 'floor': return Math.floor(n);
|
||||||
|
case 'ceiling': return Math.ceil(n);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue