NetBSD-Bugs archive

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

Re: lib/44741: strtod convert 0.010000000000000000057612911342378542997169 incorrectly



The following reply was made to PR lib/44741; it has been noted by GNATS.

From: Alexander Nasonov <alnsn%yandex.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
lib-bug-people%netbsd.org@localhost,gnats-admin%netbsd.org@localhost,netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/44741: strtod convert 
0.010000000000000000057612911342378542997169 incorrectly
Date: Sat, 19 Mar 2011 04:32:43 +0300

 19.03.2011, 03:25, alnsn%yandex.ru@localhost:
 > I don't know whether netbsd guarantees that string->double->string
 > conversion returns original value so feel free to change
 > ATF_CHECK_STREQ check to a more correct check.
 
 This is totally wrong. string->double->string can't be guaranteed
 to produce identical result. I should change the check.
 
 Alex
 


Home | Main Index | Thread Index | Old Index