When using boost::lexical_cast (I'm using boost version 1.58 on VS2013), I can't get the exact value specified in the string, even though it is represent-able in float:
std::wstring t = L"91.25";
float r;
r = boost::lexical_cast<float>(t);
r is 91.249992 (0x42B67FFF) instead of 91.250000 (0x42b68000)
Prior versions of boost behaved the expected way. Is there a precision setting I'm missing?