Project

General

Profile

Actions

Bug #610

closed

strtof() and strtold() missing

Added by hasso over 17 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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 ;).

Actions #1

Updated by joerg over 17 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

Actions #2

Updated by hasso over 17 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.

Actions #3

Updated by pavalos almost 16 years ago

This is in my post-release branch.

Actions #4

Updated by Anonymous over 15 years ago

Fixed, after Peter Avalo's libc changes.

Actions

Also available in: Atom PDF