[PHP] Peculiar number_format() behaviour

2004-03-22 Thread Paul Hopkins
Here's the code: ?php $a = 676.6; $b = 0.175; $y = $a * (1 + $b); echo(y: . $a . * (1 + . $b . ) = $yBR); $z = $a + ($a * $b); echo(z: . $a . + ( . $a . * . $b . ) = $zBR); echo(number format(y)=.number_format($y, 2).BR); echo(number format(z)=.number_format($z, 2).BR); ? Here's the

RE: [PHP] Peculiar number_format() behaviour

2004-03-22 Thread Ford, Mike [LSS]
On 22 March 2004 10:31, Paul Hopkins wrote: Here's the code: ?php $a = 676.6; $b = 0.175; $y = $a * (1 + $b); echo(y: . $a . * (1 + . $b . ) = $yBR); $z = $a + ($a * $b); echo(z: . $a . + ( . $a . * . $b . ) = $zBR); echo(number format(y)=.number_format($y, 2).BR);