Hi -
In your browser, go to
<http://www.perldoc.com/perl5.6.1/pod/perlfaq4.html>.
In general, you can get most perl core and module
documentation at <http://www.perldoc.com> and/or
<http://www.cpan.org>.
Aloha => Beau.
-----Original Message-----
From: LoBue, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 8:26 AM
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]