
16 Mar
2006
16 Mar
'06
7:54 a.m.
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 |