>Martin Geisler wrote:
>
>> My PHP manual (from a Debian package) has the following note on the > page for
>round():
>> > Caution
>>
>> When rounding on exact halves round() rounds down on evens and up on
>> odds. If you want to always force it in one direction on a .5 (or
>> .05 in your c
Hi,
please suppose PHP 4.3.2 and $number=502,3550
number_format($number,2,'.',' ') returns 502.36.
It seems ok, but if $number=253,0650
number_format($number,2,'.',' ') returns 253.06 instead of 253.07.
Why?
I've noticed this non-coherent approximation behaviour when
3rd decimal
2 matches
Mail list logo