Fix Maths functions
This commit is contained in:
parent
fa42953d58
commit
89471364ae
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ Primitives.prototype.primModulo = function(b) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Primitives.prototype.primMathFunction = function(b) {
|
Primitives.prototype.primMathFunction = function(b) {
|
||||||
var op = interp.numarg(b, 0);
|
var op = interp.arg(b, 0);
|
||||||
var n = interp.numarg(b, 1);
|
var n = interp.numarg(b, 1);
|
||||||
switch(op) {
|
switch(op) {
|
||||||
case 'abs': return Math.abs(n);
|
case 'abs': return Math.abs(n);
|
||||||
|
|
Reference in a new issue