I have some decimal numbers in a text file represented in exponential form Eg: 144.2e-3. I want to store the values in float. In qt it returns \"0\" when i directly use the
value = 3.91e+01; double doubleValue; stringstream valuestream(value); valuestream >> doubleValue;
Using a stringstream you can convert exponential number to the datatype we require.