RE: [boost] Re: Insufficient significant digits using lexical_cast

2003-08-20 Thread Paul A. Bristow
| -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] Behalf Of Daniel Spangenberg | Sent: Tuesday, August 19, 2003 9:25 AM | To: [EMAIL PROTECTED] | Subject: [boost] Re: Insufficient significant digits using lexical_cast In the absence of a C99 or numeric_limits sig

RE: [boost] Re: Insufficient significant digits using lexical_cast

2003-08-20 Thread Paul A. Bristow
| -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] Behalf Of Daniel Spangenberg | Sent: Tuesday, August 19, 2003 9:25 AM | To: [EMAIL PROTECTED] | Subject: [boost] Re: Insufficient significant digits using lexical_cast | | I think, the correct solution would be th

RE: [boost] Re: Insufficient significant digits using lexical_cast

2003-08-18 Thread Paul A. Bristow
Agreed - but what do we do if NOT is_iec559? Give up? #error "Can only work with IEEE 754!" Or choose a massive amount of decimal digits? eg 40? Paul Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK +44 1539 561830 Mobile +44 7714 33 02 04 mailto:[EMAIL PROTECTED] | -Ori

RE: [boost] Re: Insufficient significant digits using lexical_cast

2003-08-17 Thread Paul A. Bristow
Sorry about the long post, but that seemed the easiest way. numeric_limits::digits10 does what it says - the number that are _guaranteed_ to be correct on output, but that isn't what one usually wants for all _significant_ on input (and I suggest again another numeric_limits::significant_digits10