I'm working with a float value like: -44.397217 and trying to process it with cout. My float seems to get truncate to -44.3972 somewhere along the way.
Here is the code:
ss << y;
std::string str = ss.str();
cout << str << endl;
std::strcpy( digits, str.c_str() );
std::cout << digits << std::endl;
Do you see the issue?