keon / awesome-bits

:computer: A curated list of awesome bitwise operations and tricks
3.06k stars 212 forks source link

Add round down / floor method #21

Closed CodeDraken closed 6 years ago

CodeDraken commented 6 years ago

n >> 0

Similar to Math.floor in JavaScript.

keon commented 6 years ago

thanks!