Re: [PHP-DEV] Working with floats

2012-07-24 Thread Kingsquare.nl - Robin Speekenbrink
Thanks for the reply. I know of the fact that converting the key to a string would be the 'correct' way of using it, i was more curious as to the difference in the var_dump-s... But the precision setting is new to me, i'll have a look into that... That would indeed make the differences in the

Re: [PHP-DEV] Working with floats

2012-07-24 Thread Galen Wright-Watson
On Tue, Jul 24, 2012 at 1:01 AM, Kingsquare.nl - Robin Speekenbrink < ro...@kingsquare.nl> wrote: > Hi all, > [...] > > Why does the last of the following examples lower my key to 18 BUT does > the var dump of the float clearly state 'float(19)' as the actual value: [...] > $i =(fl

Re: [PHP-DEV] Working with floats

2012-07-24 Thread Ronald Chmara
Your CompSci education (or lack thereof) has failed you. Use the source. Floats behave differently under different conditions. -Ronabop -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php