This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: strange behavior with perl v 5.8.8


On 9/27/07, Brian Mathis  wrote:
> On 9/27/07, Andrew Louie  wrote:
> > Hello,
> >
> > I've run into a strange adding problem with perl:
> >
> > when incrementing by 0.1 i get a strange behavior where at some
> > arbitrary  number, it will append 0.9999999999 to the end of the
> > number.
> >
>
> There's an excellent explanation of this (just posted today about the
> recently discovered Excel 2007 bug) here:
> http://www.joelonsoftware.com/items/2007/09/26b.html
>

thanks!
I never really thought about this before becuase it was never a problem.

anyway I was able to fix my problem with sprintf.

thanks for all the informative replies.


-- 
-Andrew Louie

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]