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 Thursday, September 27, 2007 11:14:09 AM -0400 Andrew Louie wrote:

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.

This is rounding error and applies to all computer systems and all programming languages that use fixed size number representations. It can be fatal - for example see <http://www.ima.umn.edu/~arnold/disasters/patriot.html>.


--
Owen Rees; speaking personally, and not on behalf of HP.
========================================================
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN

--
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]