Skip to content

Instantly share code, notes, and snippets.

@pointofpresence
Last active May 5, 2023 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pointofpresence/d4fae0b53f6e8233f1f39498aca01997 to your computer and use it in GitHub Desktop.
Save pointofpresence/d4fae0b53f6e8233f1f39498aca01997 to your computer and use it in GitHub Desktop.
From pointofpresence.ru
> parseInt(1000)
1000
> parseInt(1000.0)
1000
> parseInt("1000.0")
1000
> parseInt(1e3)
1000
> parseInt("1e3")
1
> Number("1e3")
1000
> parseInt("1e3", 16)
483
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment