[Solved]QString with exponent convert to float
-
Hello everyone:
If I had a QString or *char that is "1.4500000e+08",how can I convert to float variable?? Dose Qt have API for this?? Thanks in advance. -
Hi, if you had read the documentation of QString, you should have find it.
@
double QString::toDouble(bool * ok = 0) const
@ -
Thanks. I used atof() to solve it : )