Hi,

Andrea Faulds wrote:
$ php -r 'var_dump(1.00000000000002, 1.00000000000001, 1.00000000000001
=== 1.00000000000002);'
float(1)
float(1)
bool(true)

I missed this when proof-reading. The output is actually:

php -r 'var_dump(1.00000000000002, 1.00000000000001, 1.00000000000001 === 1.00000000000002);'
float(1)
float(1)
bool(false)

Which reflects the point I was trying to make (two numbers that are NOT exactly equal according to === are printed identically by var_dump()).

I made a mistake in my original email, sorry.

--
Andrea Faulds
https://ajf.me/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to