Qt 4.4.0 RC1 released, qt-copy updated

Thiago Macieira thiago at kde.org
Sun Apr 6 11:15:15 BST 2008


Thorsten Zachmann wrote:
>return qAbs(p1 - p2) < 0.00000000001;
>
>Now when one value is 0.0 the and the other is quite small e.g.
> 2.66454e-15 this will always return false.
>
>Should I report that as bug?

No, it's not a bug in Qt, but in the code that is calling qFuzzyCompare.

Suggestion: compare your value plus 1 to 1.
-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080406/86544c2b/attachment.sig>


More information about the kde-core-devel mailing list