> -----Original Message-----
> From: LoBue, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 11: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?

Not ActiveState's fault; it's Microsoft's brain-dead shell.

Double quotes instead of single should work.

But also, just use a word or two from the title will also work:

   perldoc -q decimals
   perldoc -q "long decimals"

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

Reply via email to