Hi
I was doing successive additions of amounts using
the code below:
$totalamount += $currentarray[5];
This line of code was inside a loop which looped for
about 4000 times and for certain amounts, the sum came out funny!
eg: It added the amount 3458.11 to the total
739474.59 to give 742932.6
THOMAS,ANN (HP-Singapore,ex1) wrote:
> Hi
>
> I was doing successive additions of amounts using the code below:
>
> $totalamount += $currentarray[5];
>
> This line of code was inside a loop which looped for about 4000 times
> and for certain amounts, the sum came out funny!
>
> eg: It added t
8<--
I was doing successive additions of amounts using the code below:
$totalamount += $currentarray[5];
This line of code was inside a loop which looped for about 4000 times and
for certain amounts, the sum came out funny!
eg: It added t