bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #43722] Parsing of strings to double can produce erroneous results


From: Sam Thompson
Subject: [bug #43722] Parsing of strings to double can produce erroneous results
Date: Tue, 02 Dec 2014 10:43:41 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36

Follow-up Comment #2, bug #43722 (project gnustep):

Fantastic, thanks.

After applying the change, the provided test code now generates the following
output, which looks correct:

String 50.6468746467461646 -> doubleValue = 50.646874646746163
String 50.64687464674616461 -> doubleValue = 50.646874646746163
String 0.646874646746164616898211 -> doubleValue = 0.64687464674616468
String 502.6468746467461646 -> doubleValue = 502.6468746467462
String 502.646874646746164 -> doubleValue = 502.6468746467462




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43722>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]