> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 8:48 AM
> To: [EMAIL PROTECTED]
> Subject: Strange total from adding 2 numbers
> 
> 
> 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?

Read the FAQ:

perldoc -q 'Why am I getting long decimals (eg, 19.9499999999999) instead of
the numbers I should be getting (eg, 19.95)?'

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to