Why is the addition of the numbers -67947269.62 and 68288455.49, both with
only 2 numbers after the decimal, resulting in 341185.86999996 where there
are 8 numbers after the decimal. I would expect the number to simply be
341185.87. How can i avoid this strange behavior?
Below are 2 examples, both are shown from the debugger.
DB<10> x $funds_type_totals{$funds_type}
0 68288455.49
DB<11> x $Deposit_Acct_Bal_Raw
0 '-67947269.62'
DB<12> s
161: $Deposit_Acct_Bal_Raw += $funds_type_totals{$funds_type};
DB<12> x $Deposit_Acct_Bal_Raw
0 341185.86999996
=======
DB<18> $l = 68288455.49 -67947269.62
DB<19> x $l
0 341185.86999999