Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Created July 6, 2010 19:58
Show Gist options
  • Save heapwolf/465836 to your computer and use it in GitHub Desktop.
Save heapwolf/465836 to your computer and use it in GitHub Desktop.
// (~~"23.1232") // 23
// (~~"23.1.1232") // 0
// (+"23.1.1232") // NaN
// +"23.1232" // "2323.1232"
// parseFloat("23.1.1232", 10) // 23.1
// parseInt("23.1.1232", 10) // 23
@heapwolf
Copy link
Author

heapwolf commented Jul 7, 2010

~-2.88 // 1

~~-2.88 // -2

~2.88 // -3

~~2.88 // 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment