How to stop doubles converting to scientific notation when using a stringstream
I'm making a function to return the number of decimal and whole number digits and am converting the inserted typename number to a string using sstream s. However the number when being converted to a string comes out in scientific notations which is not useful for counting the number of digits are in the normal number. How can I stop this from happening in my function below? enum { DECIMALS = 10, WHOLE_NUMBS = 20, ALL = 30 }; template < typename T > int Numbs_Digits(T numb, int scope) { stringstream ss(stringstream::in | stringstream::out); stringstream ss2(stringstream::in | stringstream::out)