[Development] Should QVariant be doing fuzzy comparisons on doubles?

Kevin Kofler kevin.kofler at chello.at
Wed Sep 21 03:56:31 CEST 2016

Thiago Macieira wrote:
> And I will reject any patch that adds more complexity in qFuzzyCompare for
> a 0.01% corner-case. Instead, we should document that it only works for
> finite numbers far enough away from zero. If your number can be infinite
> or NaN or zero, you have to find something else.

This is just ridiculous, the code would be fixing a clear bug, and avoid 
having to very dangerously change the behavior of QVariant.

        Kevin Kofler

More information about the Development mailing list