Skip to content

Instantly share code, notes, and snippets.

@kitek
Last active January 3, 2016 15:29
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 kitek/5708855 to your computer and use it in GitHub Desktop.
Save kitek/5708855 to your computer and use it in GitHub Desktop.
Porównanie liczb zapisanych w string'ach.
"1.00000000000000001" == "0.1e1" → bool(true)
"+1" == "0.1e1" → bool(true)
"1e0" == "0.1e1" → bool(true)
"-0e10" == "0" → bool(true)
"1000" == "0x3e8" → bool(true)
"1234" == " \t\r\n 1234" → bool(true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment