On Tuesday 04 September 2012 14:17:28 Thiago Macieira wrote: > On terça-feira, 4 de setembro de 2012 12.48.20, Sean Harmer wrote: > > I know that qFuzzyCompare() is not the best for comparing floating point > > numbers, especially if one of the values is very very close to zero, but > > it > > works on other platforms in this test. > > qFuzzyCompare is supposed to be used with non-zero arguments. To compare to > a zero, use qFuzzyIsNull.
Yes. The trouble is there is no generic compare two floats when you don't know if either of them are supposed to be near to/exactly zero. I have a WIP patch here to try and resolve that but it is a very tricky problem. I do not yet know if it is a zero/near-zero value comparison causing the issue. Cheers, Sean -- Dr Sean Harmer | sean.har...@kdab.com | Senior Software Engineer Klarälvdalens Datakonsult AB, a KDAB Group company Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322) KDAB - Qt Experts - Platform-independent software solutions _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development