Guest User

Untitled

a guest
Mar 8th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. function round(num)
  2. if num % 1 < .5 then
  3. return math.floor(num)
  4. elseif num % 1 >= .5 then
  5. return math.ceil(num)
  6. end
  7. end
Add Comment
Please, Sign In to add comment