daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Dec 9th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function ceil(a) {
  2.   return a % 1 ? (0 < a ? a + 1 : a) | 0 : a
  3. }
  4.  
  5. function abs(a) {
  6.   return 0 > a ? -a : a
  7. }
  8.  
  9. function floor(a) {
  10.   return a % 1 ? (0 < a ? a : a - 1) | 0 : a
  11. }
  12.  
  13. function round(a) {
  14.   return (0 > a ? -0.5 : 0.5) + a | 0
  15. }
  16.  
  17. function max(a, b) {
  18.   return a < b ? b : a
  19. }
  20.  
  21. function min(a, b) {
  22.   return a < b ? a : b
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top