Last active
June 2, 2016 01:47
-
-
Save lushijie/ca051af4dc8777ec613c5725e1c85c82 to your computer and use it in GitHub Desktop.
位运算取下整
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Math.floor(4.9) === 4 //true | |
~~4.9 === 4 //true | |
(4.9 | 0) === 4 //true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment