Re: [Stlport-devel] num get float
Brought to you by:
complement
From: Petr O. <pt...@is...> - 2007-07-13 05:44:59
|
On Thursday 12 July 2007 23:24, François Dumont wrote: > No, this is not that Uli. > > It simply looks like I was wrongly interpreting the digits10 value. > digits10 is only the number of digits represented by mantissa but a > float type is not only composed of the mantissa which explain this > additional 2 because we want to total number of digits. Now the question > is, how much should be this constant for long double with 64 bits > mantissa? I will do some test to find the answer... Not test, but D. E. Knuth, The Art of Computer Programming, v.2. > > Bests > > Ulrich Eckhardt wrote: > > [CCing you directly, sourceforge doesn't take mails from my home account and I > > won't be at work for maybe another two weeks.] > > > > On Sunday 08 July 2007 15:33:21 François Dumont wrote: > > > >> If you are asking for tests about definition of maxdigits in > >> _Stl_string_to_double I haven't any. I simply think that it should be > >> set to numeric_limits<double>::digits10, adding 2 is useless even if it > >> is not a bug. > >> > > > > I'm not sure, but here's one guess: > > num digits + sign + NUL > > > > Uli |