RE: [PHP] A really wacky design decision
| From: | Andrea Giammarchi | Date: | Sun, 04 Oct 2009 12:52:36 +0000 |
| Subject: | RE: [PHP] A really wacky design decision | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298548@lists.php.net to get a copy of this message | ||
> $a = 2260; $b = 226e1; $c = 2.26e3; $d = 2260.0;
>
> $a==$b==$c==$d,
>
> and
> $b===$c===$d
$b , $c, and $d are the same indeed ... they represent the floating point 2260.0 in I think every
language ... it's like saying that 1.0 is not 1.0000 ... both floating point numbers, so I
don't get your problem ...
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009