[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LC_NUMERIC progress.
From: |
Ben Pfaff |
Subject: |
Re: LC_NUMERIC progress. |
Date: |
Sun, 23 Dec 2012 14:10:58 -0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, Dec 23, 2012 at 11:03:14PM +0100, John Darrington wrote:
> I see that we are using dtoastr from gnulib in a few places. There
> does not seem to be any locale independent version of this function.
> Either we will need to write one, or we will need to use something
> else.
>
> Do we need to use this function, or would c_strtod to the job ?
doastr converts a double to a string.
c_strtod converts a string to a double.
We should probably write a c_dtoastr(). It could be pretty simple, a
wrapper around dtoastr() that then searches for a comma and replaces it
by a period.