[Perl-unix-users] Wrong addition?

2002-09-25 Thread THOMAS,ANN \(HP-Singapore,ex1\)
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

Re: [Perl-unix-users] Wrong addition?

2002-09-25 Thread $Bill Luebkert
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

RE: [Perl-unix-users] Wrong addition?

2002-09-25 Thread Allegakoen, Justin Devanandan
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