strange behavior with perl v 5.8.8

Andrew Louie louiea@gmail.com
Thu Sep 27 17:07:00 GMT 2007


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/



More information about the Cygwin mailing list