double number = 10000000;
int range; //the length of the string result
string result; //holds the number in a string
ostringstream convert; //stream used for the conversion
convert << number;
result = convert.str();
range = result.length();
Ok so I'm trying to convert a double to a string and when the number goes to ten million it goes to scientific notation and it shows it in the string.
How do I stop it from do that?