- //#switch(Script.toString(method))
- case "ceil": return Script.N((long)java.lang.Math.ceil(Script.toDouble(args[0])));
- case "floor": return Script.N((long)java.lang.Math.floor(Script.toDouble(args[0])));
- case "round": return Script.N((long)java.lang.Math.round(Script.toDouble(args[0])));
- case "abs": return Script.N(java.lang.Math.abs(Script.toDouble(args[0])));
- case "sin": return Script.N(java.lang.Math.sin(Script.toDouble(args[0])));
- case "cos": return Script.N(java.lang.Math.cos(Script.toDouble(args[0])));
- case "tan": return Script.N(java.lang.Math.tan(Script.toDouble(args[0])));
- case "asin": return Script.N(java.lang.Math.asin(Script.toDouble(args[0])));
- case "acos": return Script.N(java.lang.Math.acos(Script.toDouble(args[0])));
- case "atan": return Script.N(java.lang.Math.atan(Script.toDouble(args[0])));
- case "sqrt": return Script.N(java.lang.Math.sqrt(Script.toDouble(args[0])));
- case "exp": return Script.N(java.lang.Math.exp(Script.toDouble(args[0])));
- case "log": return Script.N(java.lang.Math.log(Script.toDouble(args[0])));
+ //#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])));