Try:
perldoc -q long decimal
and it works as it should.
Wags ;)
-----Original Message-----
From: LoBue, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 11:26
To: [EMAIL PROTECTED]
Subject: RE: Strange total from adding 2 numbers
> > -----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)?'
>
When I try this on a PC with ActiveState 5.6.1 I get:
M:\>perldoc -q 'Why am I getting long decimals (eg, 19.9499999999999)
instead of the numbers I should be getting (eg, 19.95)?'
No documentation for perl FAQ keyword `'Why' found
Is there a way to see this information with ActiveState perl?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]