How to convert a floating point into a string and add the 2 decimals when the floating point is a round number. Currently I am using the following, but for round numbers, I would like to have the .00 added. Do I need to write my own routine for that?
float floatingNumber = 1.00;
string string;
ostringstream stream;
stream << floatingNumber;
string += stream.str(); // result is 1 not 1.00