I want to convert QString("3.285072743893E-04")
to double
without compromising the precision.
When I use QString::toDouble
the result is 0.000328507
.
I have read somewhere that it is just a matter of how the value is displayed.
Does that mean, that converting the value to double
, QString::toDouble
actually preserves its precision, i.e. that the precission of the returned value of type double
is not compromised? And more importantly, if we process the data, do we need to worry about its precision?