Boost logo

Boost :

From: Janek Kozicki (janek_listy_at_[hidden])
Date: 2006-03-16 02:54:29


Caleb Epstein said: (by the date of Wed, 15 Mar 2006 18:19:45 -0500)

> Breakpoint 1, main () at lc.cpp:12
> 12 assert (num == orig_value);
> (gdb) print num
> $3 = 0.0019075645054089489
> (gdb) print orig_value
> $4 = 0.0019075645054089487

ok, so I am surprised :) Therefore I back off ;)

but honestly - there must be a bug somewhere (I belive it's in
lexical_cast), right? Maybe authors of lexical_cast should add one
significant place to the string? If not - then why this won't work? Is
it really impossible to avoid losing data in conversions?

best if one of boost::lexical_cast authors would answer....

-- 
Janek Kozicki                                                         |

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk