Re: '1.8' == 1.8 can return false or yet another example of the uselessness of type juggling.

From: Date: Sat, 12 Apr 2008 11:08:08 +0000
Subject: Re: '1.8' == 1.8 can return false or yet another example of the uselessness of type juggling.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-36988@lists.php.net to get a copy of this message
Richard Quadling schrieb:
On 12/04/2008, Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
There is no bug here. Please read: http://docs.sun.com/source/806-3568/ncg_goldberg.html -Rasmus
So, would I be right in thinking that the only time type-juggling is 100% successful is between strings and integers?
I suggest you read the page that Rasmus referred to. The effect has nothing to do with type conversions, it happens with pure float computations too. Regards, Stefan

« previous php.internals (#36988) next »