diff core/src/luan/modules/Math.luan @ 566:90b93790c544

Number and Math documentation and minor changes
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 05 Jul 2015 18:26:04 -0600
parents fda38db30e65
children
line wrap: on
line diff
--- a/core/src/luan/modules/Math.luan	Sun Jul 05 00:47:00 2015 -0600
+++ b/core/src/luan/modules/Math.luan	Sun Jul 05 18:26:04 2015 -0600
@@ -2,6 +2,8 @@
 local MathLuan = require "java:luan.modules.MathLuan"
 local JavaMath = require "java:java.lang.Math"
 local Integer = require "java:java.lang.Integer"
+local Double = require "java:java.lang.Double"
+
 
 local M = {}
 
@@ -16,22 +18,19 @@
 M.deg = MathLuan.deg
 M.exp = MathLuan.exp
 M.floor = MathLuan.floor
+M.fmod = MathLuan.fmod
+M.huge = Double.POSITIVE_INFINITY
 M.log = MathLuan.log
+M.max = MathLuan.max
+M.max_integer = Integer.MAX_VALUE
 M.min = MathLuan.min
 M.min_integer = Integer.MIN_VALUE
-M.max = MathLuan.max
-M.max_integer = Integer.MAX_VALUE
 M.modf = MathLuan.modf
 M.pi = JavaMath.PI
-M.pow = MathLuan.pow
 M.rad = MathLuan.rad
 M.random = MathLuan.random
 M.sin = MathLuan.sin
-M.sinh = MathLuan.sinh
 M.sqrt = MathLuan.sqrt
 M.tan = MathLuan.tan
-M.tanh = MathLuan.tanh
-
-M.long_to_string = MathLuan.long_to_string
 
 return M