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
Use QString::toDouble.
QString::toDouble
Example:
bool ok; float f = static_cast< float>( QString( "1234.56e-02" ).toDouble( &ok));