diff options
author | Philipp Gesang <philipp.gesang@alumni.uni-heidelberg.de> | 2012-10-19 20:23:49 +0200 |
---|---|---|
committer | Philipp Gesang <philipp.gesang@alumni.uni-heidelberg.de> | 2012-10-19 20:23:49 +0200 |
commit | eee3680bb4dbb5f135cc6285bb83833b4e237fec (patch) | |
tree | c1620cbe42bd9effd8c0b81e9fec5c1d6caa67b9 /lualibs-math.lua | |
parent | 7932ae95cb4506822cb76ce7cc4f5491652db60d (diff) | |
download | lualibs-eee3680bb4dbb5f135cc6285bb83833b4e237fec.tar.gz |
update l-file l-table; add yet uncommitted changes
Diffstat (limited to 'lualibs-math.lua')
-rw-r--r-- | lualibs-math.lua | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lualibs-math.lua b/lualibs-math.lua index 4669a51..43f60b5 100644 --- a/lualibs-math.lua +++ b/lualibs-math.lua @@ -9,21 +9,15 @@ if not modules then modules = { } end modules ['l-math'] = { local floor, sin, cos, tan = math.floor, math.sin, math.cos, math.tan if not math.round then - function math.round(x) - return floor(x + 0.5) - end + function math.round(x) return floor(x + 0.5) end end if not math.div then - function math.div(n,m) - return floor(n/m) - end + function math.div(n,m) return floor(n/m) end end if not math.mod then - function math.mod(n,m) - return n % m - end + function math.mod(n,m) return n % m end end local pipi = 2*math.pi/360 |