diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-05-04 23:10:29 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-05-04 23:11:06 +0200 |
commit | a79c845dba381f543d09526f77dcf2b4687b73a7 (patch) | |
tree | 8c42403a55c9c6736eb491331bfa7f650f807414 /lualibs-math.lua | |
parent | 9c35a373aa8e0edf14b686568fffab0e6969f447 (diff) | |
download | lualibs-a79c845dba381f543d09526f77dcf2b4687b73a7.tar.gz |
sync with Context as of 2015-05-04
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 |