Posted by Andy Hassall on 02/13/06 23:05
On 13 Feb 2006 12:29:18 -0800, "Wescotte" <wescotte@earthlink.net> wrote:
>PHP 5.0.5 running on Win2k Server
>
>$rate = 0.015;
>$value = 15;
>
>echo $rate * $value;
>echo "<BR>";
>echo round($rate * $value , 2);
>
>output:
>
>0.225
>0.22
>
>Shouldn't this be?
>0.225
>0.23
On 5.1.2 it does output 0.23.
Perhaps see http://bugs.php.net/bug.php?id=24142
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|