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 ;-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---