eniallator

roundToNearest

Aug 7th, 2016
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.08 KB | None | 0 0
  1. n,i=100,6 a=n/i if a%1<0.5 then o=math.floor else o=math.ceil end print(o(a)*i)
Add Comment
Please, Sign In to add comment