Last active
October 12, 2015 18:31
-
-
Save sarfraznawaz2005/5916566f87bb6cba0cd7 to your computer and use it in GitHub Desktop.
Quick way to round a number
This file contains hidden or 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
console.log( 104.249834 | 0 ); //104 | |
console.log( 9.999999 | 0 ); // 9 | |
// bitwise operators operators call ToInt32 on each expression to be evaluated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment