This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc 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]

[Bug libc/274] New: The function strtold() does not work as expected


The function strtold() can fail in converting strings which represent floating
numbers with more than 19 meaningful digits after the radix character. For
instance, the instruction

           x = strtold ("42.0000000000000000001", &endptr);

will put in x the value 42, while after

           x = strtold ("42.00000000000000000001", &endptr);

or

           x = strtold ("42.0000000000000000000001", &endptr);

x will be equal to zero !

-- 
           Summary: The function strtold() does not work as expected
           Product: glibc
           Version: 2.3.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: ivprimi at libero dot it
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=274

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]