A simple experiment using to_string with the minimum floating point values, results in 0.0000 for both float and double types:
std::to_string(std::numeric_limits<float>::min());
std::to_string(std::numeric_limits<double>::min());
The correct answer would be, e.g. 1.17549e-38 for the float type. Is this a known limitation of std::to_string or am I doing something wrong? Is there a way around this, so that I can get the correct result?