
IMO The real issue here is not whether round-tripping should work, but that input from a long enough decimal digit string should always give you the nearest floating-point representation. For float this is true, and for double is almost (but not quite) true. Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS | -----Original Message----- | From: boost-bounces@lists.boost.org | [mailto:boost-bounces@lists.boost.org] On Behalf Of Sebastian Redl | Sent: 02 May 2006 15:55 | To: boost@lists.boost.org | Subject: Re: [boost] | [serialization]Serialisation/deserialisationoffloating-point values | | Paul A Bristow wrote: | | >The Standard is imprecise on this issue, but I feel it is a | very poor | >do that such a bizarre small range of values should be wrong. | > | >Feels like an off-by-one rounding bug to me. | > | > | I tend to agree with the MS engineers here. I've found out | only yesterday that the FPU/math library is not entirely | deterministic in some calculations (including square roots | and trigonometry, typical 3d stuff), so I think worrying | about serialization/deserialization is useless. | | Sebastian Redl | _______________________________________________ | Unsubscribe & other changes: | http://lists.boost.org/mailman/listinfo.cgi/boost |