[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LUA for Windows CE
- From: David Jones <djones@...>
- Date: Thu, 20 Jun 2002 14:45:08 +0000
In message <200206201318.KAA07243@lua.tecgraf.puc-rio.br>, Luiz Henrique de Fig
> (If someone knows a fast, small, portable function that converts floating-poi
> numbers to strings such that converting the string back to a number gives the
> *same* number, please let me know. I know about the ones by David Gay in netl
> but they're too complicated.)
Every version of printf that I've seen the source to and that works (in
particular has the property you describe) uses David Gay's netlib code.
That what FreeBSD uses for example.
There are plenty of versions of printf out there that don't work (they
don't satisfy the reading back a printed number gives the same number
property). Presumably the code for such versions is smaller.
If you want to remove sprintf I suggest you use David Gay's code. It's
what every decent printf uses in any case.