Hi,
When I do this:
I get:
40.099998
Why don't I get 40.1? I'm very thankful for any ideas.
Thanks!
Printable View
Hi,
When I do this:
I get:
40.099998
Why don't I get 40.1? I'm very thankful for any ideas.
Thanks!
There's nothing wrong with QString::toFloat(), it's result of casting your value to double inside printf. Some more info here.
Try this :)
Code:
qDebug() << frty;