Accuracy of Mathematical Functions

Tom Kacvinsky tkacvins@gmail.com
Fri Mar 6 00:20:58 GMT 2026


Hi,

On Thu, Mar 5, 2026 at 6:08 PM H. Peter Anvin <hpa@zytor.com> wrote:


> This is a great document for a whole bunch of reasons.
>
> One thing I would personally love to see added is strto{f,d,ld}() --
> converting decimal strings to binary floating-point is notoriously complex
> to
> do with proper rounding, but there are algorithms out there now that will
> do
> so correctly without requiring ridiculous amount of computation, and there
> really is no good reason not to take advantage of that.
>

I'd be interested in a link to such algorithms.

I don't contribute to glibc, but I'd be interested in knowing about those
algorithms.  I don't they could be used in glibc unless the license of
them complies with the GPL license.

Others on the list probably have more to say about that than I do.

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260305/50d8d9e3/attachment-0001.htm>


More information about the Libc-alpha mailing list