Bug #610

strtof() and strtold() missing

Added by hasso over 7 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:pavalos% Done:

0%

Category:-
Target version:-

Description

While looking at issue I discovered that most of systems (NetBSD and FreeBSD
among others) are using gdtoa for floating point to string and string to
floating point conversions. Actually it's true for DF as well,
lib/libc/stdlib/strtod.c is successor of the gdtoa.

Obvious solution would be to update to latest gdtoa code to get C99 conformant
floating point to string and string to floating point conversion. The fact
that FreeBSD and NetBSD are using it should simplify it at least a little.

Before someone mentions it - no, it's beyond my skills at the moment ;).

History

#1 Updated by joerg over 7 years ago

gdtoa is a mess and for a lot of cases quite slow. I should also point
out that strtof and strtold usage is barely existing.

Joerg

#2 Updated by hasso over 7 years ago

Seems that mostly because applications have their own fallback
implementations. I have seen several libraries/applications using
it unconditionally though. Yes, it's a bug in the application, but
it would be much better to have these in libc.

#3 Updated by pavalos over 5 years ago

This is in my post-release branch.

#4 Updated by Beket over 5 years ago

Fixed, after Peter Avalo's libc changes.

Also available in: Atom PDF