This is a symfony mailing list not a PHP one ;)
btw, http://uk.php.net/float


On Wed, Oct 14, 2009 at 9:33 PM, ffrey <ffrey....@gmail.com> wrote:

>
> Total madness !
> $v = (float) ((0.7 + 0.1) * 10);echo $v; => 8, as expected
>
> $v = (int) ((0.7 + 0.1) * 10);echo $v; => 7, as totally unexpected !!!
>
> Can you explain why ? A php bug ?
> Thanks for that thought-provoking post ;-)
>
> >
>


-- 
Thomas Rabaix
http://rabaix.net

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to