[Qt-interest] string to float

yanqzhi at gmail.com yanqzhi at gmail.com
Wed Jan 27 09:55:18 CET 2010


hi,

When a string converts to a float, the float returned does't exactly match the string;

 QString str("57.130");
 float a = str.toFloat();

the float is 57.130001.

         
        yanqzhi at gmail.com 
          2010-01-27 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100127/1cc1d9af/attachment.html 


More information about the Qt-interest-old mailing list