diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-11-21 16:57:19 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-11-21 16:57:19 +0100 |
commit | 8401067436d466b62459283139aa5f7bdf5be0c8 (patch) | |
tree | e4ba77b39dc3c3fe6eb5f3a66513afb32c5990ca /lualibs-math.lua | |
parent | 13e578a1d0f803d8ec7d42d70bb6f773a44e84b0 (diff) | |
parent | 7d8afd6591e978a6a85bf29bbcdbeb3e3936d4d5 (diff) | |
download | lualibs-8401067436d466b62459283139aa5f7bdf5be0c8.tar.gz |
Merge pull request #27 from phi-gamma/master
latest changes
Diffstat (limited to 'lualibs-math.lua')
-rw-r--r-- | lualibs-math.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lualibs-math.lua b/lualibs-math.lua index 43f60b5..ec62919 100644 --- a/lualibs-math.lua +++ b/lualibs-math.lua @@ -8,6 +8,10 @@ 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.ceiling then + math.ceiling = math.ceil +end + if not math.round then function math.round(x) return floor(x + 0.5) end end |