Mercurial Hosting > luan
diff core/src/luan/modules/Math.luan @ 341:410e59ebad7d
add more Math functions
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 03 Apr 2015 06:17:11 -0600 |
parents | 7f7708e8fdd4 |
children | 92c3d22745b8 |
line wrap: on
line diff
--- a/core/src/luan/modules/Math.luan Tue Mar 31 02:35:40 2015 -0600 +++ b/core/src/luan/modules/Math.luan Fri Apr 03 06:17:11 2015 -0600 @@ -1,6 +1,7 @@ java() local MathLuan = require "java:luan.modules.MathLuan" local JavaMath = require "java:java.lang.Math" +local Integer = require "java:java.lang.Integer" abs = MathLuan.abs acos = MathLuan.acos @@ -15,7 +16,9 @@ floor = MathLuan.floor log = MathLuan.log min = MathLuan.min +min_integer = Integer.MIN_VALUE max = MathLuan.max +max_integer = Integer.MAX_VALUE modf = MathLuan.modf pi = JavaMath.PI pow = MathLuan.pow @@ -26,3 +29,4 @@ sqrt = MathLuan.sqrt tan = MathLuan.tan tanh = MathLuan.tanh +to_string = MathLuan.to_string