id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 5796,"Casting from float to string using ""lexical_cast"" gives inaccurate values.",Mikko Partonen ,nasonov,"When casting floats to strings with lexical_cast() for use in wxTextCtrl, the new boost versions adds a lot of nines or zeroes along with some random numbers at the end of the float values. For example, with an older boost version, I get ""0.96"" and ""0.8"" and with new versions, I get ""0.959999979"" and ""0.800000012"". I believe this new feature has to do with this problem: ""The previous version of lexical_cast used the default stream precision for reading and writing floating-point numbers. For numerics that have a corresponding specialization of std::numeric_limits, the current version now chooses a precision to match."" This can easily be fixed by using an older version of lexical_cast.hpp file. Wouldn't it be better to fix this issue, so that I wouldn't need to use the old version of lexical_cast.hpp? I attached the lexical_cast.hpp version with which conversions from floats to strings works.",Bugs,closed,To Be Determined,lexical_cast,Boost 1.47.0,Cosmetic,wontfix,"lexical_cast, float",antoshkka@…