Skip to content

Instantly share code, notes, and snippets.

@danwdart
Created June 1, 2017 10:54
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 danwdart/01f661ad343ee34a1e1fc3b3741e640b to your computer and use it in GitHub Desktop.
Save danwdart/01f661ad343ee34a1e1fc3b3741e640b to your computer and use it in GitHub Desktop.
WTF?
<?php
assert( 1.0000000000000001 == 1);
assert( 1.000000000000001 != 1);
assert((string) 1.00000000000001 == 1);
assert((string) 1.0000000000001 != 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment