Some float point operations seem to fail under a IBM e-server Pentium IV. Reproducible: Always Steps to Reproduce: <? $num = 57.4523; echo "1 : $num<br>"; echo "2 : ".sprintf("%2.02f", $num)."<br>"; echo "3 : ".number_format($num,2,'.',','); ?> Actual Results: 1 : 57.4523 2 : i.00 3 : i00 Expected Results: 1 : 57.4523 2 : 57.45 3 : 57.45 I have tried the float point operations in Perl in the same machine and it works Fine. perl -e 'printf("%2.3f", 334.38452);' 334.385 Also have tried mod_php-4.3.2-r1 and r2
could you please include your 'emerge info' output?
Solved. I have changed the arch in CFLAGS to pentium3.
pentium4 cflags strikes again.