[Qt-creator] tofloat() function gives inappropriate results
Ashish Vats
vatsa at lntebg.com
Sat Jul 10 12:58:23 CEST 2010
I am using QT4.5 , I want to convert the string value to float so I have used function tofloat(). But the results i am getting are not accurate.
For example : If the string value is 7.6 then the output of function to float is 7.5999...
Regards
Ashish
Larsen & Toubro Limited
Electrical & Electronics Division - EBG
http://www.LNTEBG.com
This E-mail may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100710/8f1e86fc/attachment.html
More information about the Qt-creator-old
mailing list