public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10404] New: strtod of very small number returns with errno set to ERANGE
@ 2009-07-16 20:16 orion at cora dot nwra dot com
  2009-07-16 20:30 ` [Bug libc/10404] " drepper at redhat dot com
  2009-07-16 21:21 ` orion at cora dot nwra dot com
  0 siblings, 2 replies; 4+ messages in thread
From: orion at cora dot nwra dot com @ 2009-07-16 20:16 UTC (permalink / raw)
  To: glibc-bugs

strtod (and atof) of "5.30498947741318e-315" returns 5.3049894774131808e-315 but
with errno set to ERANGE.  This is new in 2.10.1 compared to 2.9 and does not
appear to be correct.

-- 
           Summary: strtod of very small number returns with errno set to
                    ERANGE
           Product: glibc
           Version: 2.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: orion at cora dot nwra dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10404

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/10404] strtod of very small number returns with errno set to ERANGE
  2009-07-16 20:16 [Bug libc/10404] New: strtod of very small number returns with errno set to ERANGE orion at cora dot nwra dot com
@ 2009-07-16 20:30 ` drepper at redhat dot com
  2009-07-16 21:21 ` orion at cora dot nwra dot com
  1 sibling, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2009-07-16 20:30 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-07-16 20:30 -------
That's the correct behavior.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=10404

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/10404] strtod of very small number returns with errno set to ERANGE
  2009-07-16 20:16 [Bug libc/10404] New: strtod of very small number returns with errno set to ERANGE orion at cora dot nwra dot com
  2009-07-16 20:30 ` [Bug libc/10404] " drepper at redhat dot com
@ 2009-07-16 21:21 ` orion at cora dot nwra dot com
  1 sibling, 0 replies; 4+ messages in thread
From: orion at cora dot nwra dot com @ 2009-07-16 21:21 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From orion at cora dot nwra dot com  2009-07-16 21:21 -------
I guess it depends on what you think "cannot be represented, without
extraordinary roundoff error" (definition of underflow from the C99 standard
[7.12.1.5]) means.  5.3049894774131808e-315 compared to 5.30498947741318e-315
does not appear to me to have "extraordinary roundoff error".  I would suggest
that something other than a simple comparison with 2.2250738585072014E-308 for
triggering ERANGE is in order.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10404

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/10404] strtod of very small number returns with errno set to ERANGE
       [not found] <bug-10404-131@http.sourceware.org/bugzilla/>
@ 2014-07-01  7:47 ` fweimer at redhat dot com
  0 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-07-01  7:47 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=10404

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-01  7:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-16 20:16 [Bug libc/10404] New: strtod of very small number returns with errno set to ERANGE orion at cora dot nwra dot com
2009-07-16 20:30 ` [Bug libc/10404] " drepper at redhat dot com
2009-07-16 21:21 ` orion at cora dot nwra dot com
     [not found] <bug-10404-131@http.sourceware.org/bugzilla/>
2014-07-01  7:47 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).