- //#switch(JS.toString(method))
- case "ceil": return JS.N((long)java.lang.Math.ceil(toDouble(a0)));
- case "floor": return JS.N((long)java.lang.Math.floor(toDouble(a0)));
- case "round": return JS.N((long)java.lang.Math.round(toDouble(a0)));
- case "abs": return JS.N(java.lang.Math.abs(toDouble(a0)));
- case "sin": return JS.N(java.lang.Math.sin(toDouble(a0)));
- case "cos": return JS.N(java.lang.Math.cos(toDouble(a0)));
- case "tan": return JS.N(java.lang.Math.tan(toDouble(a0)));
- case "asin": return JS.N(java.lang.Math.asin(toDouble(a0)));
- case "acos": return JS.N(java.lang.Math.acos(toDouble(a0)));
- case "atan": return JS.N(java.lang.Math.atan(toDouble(a0)));
- case "sqrt": return JS.N(java.lang.Math.sqrt(toDouble(a0)));
- case "exp": return JS.N(java.lang.Math.exp(toDouble(a0)));
- case "log": return JS.N(java.lang.Math.log(toDouble(a0)));
+ //#switch(JSU.toString(method))
+ case "ceil": return JSU.N((long)java.lang.Math.ceil(JSU.toDouble(args[0])));
+ case "floor": return JSU.N((long)java.lang.Math.floor(JSU.toDouble(args[0])));
+ case "round": return JSU.N((long)java.lang.Math.round(JSU.toDouble(args[0])));
+ case "abs": return JSU.N(java.lang.Math.abs(JSU.toDouble(args[0])));
+ case "sin": return JSU.N(java.lang.Math.sin(JSU.toDouble(args[0])));
+ case "cos": return JSU.N(java.lang.Math.cos(JSU.toDouble(args[0])));
+ case "tan": return JSU.N(java.lang.Math.tan(JSU.toDouble(args[0])));
+ case "asin": return JSU.N(java.lang.Math.asin(JSU.toDouble(args[0])));
+ case "acos": return JSU.N(java.lang.Math.acos(JSU.toDouble(args[0])));
+ case "atan": return JSU.N(java.lang.Math.atan(JSU.toDouble(args[0])));
+ case "sqrt": return JSU.N(java.lang.Math.sqrt(JSU.toDouble(args[0])));
+ case "exp": return JSU.N(java.lang.Math.exp(JSU.toDouble(args[0])));
+ case "log": return JSU.N(java.lang.Math.log(JSU.toDouble(args[0])));