Hi. I am just wondering how to restore a number that is in scientific notation. So, take a number that is in scientific notation, turn it into standard form, and resave the variable in standard form. here is an example of outputing the variable amount in standard form:
n1.setf(ios::fixed);
cout << n1 << endl;
but i need it to be like this:
n1.setf(ios::fixed);
cout << n1 << endl; //The amount of the variable is no longer in scientific notation
I need a way to do this because of my calculator. My calculator works by finding the first devide or times sign, then it multiplies the two numbers that are affected by the devide/times sign and it stores the number into a different variable, and then the value of the different variable is put back into the original equation. When the different variable has to go into scientific notation, it makes the string operations not work right. I cant find a fix to make the string operations work with scientific notation. Any solutions?