Stop Scientific Notation

1
2
3
4
5
6
7
8
9
	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?
convert << std::fixed << number;
I knew it was going to be something so simple. Thanks for the help!
Topic archived. No new replies allowed.