Re: QVariant precision issues

2015-10-27 Thread Stephen Kelly
David Edmundson wrote: > qFuzzyCompare ? Yes, QVariant uses qFuzzyCompare internally, which means you get the precision that qFuzzyCompare hardcodes. You need to extract the double if you want to do something else. We hit the same problem in work: double d1 = 1.0001; double d2 = 1

Re: QVariant precision issues

2015-10-27 Thread David Edmundson
qFuzzyCompare ? ___ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel

Re: QVariant precision issues

2015-10-27 Thread Christoph Cullmann
Hi, i guess the test should use values representable, e.g not stuff like 0.2. doubles are stored in 2 not 10 base. Greetings Christoph - Albert Astals Cid schrieb: > Hi, i remember a while ago an issue with QVariant not storing doubles the > same > way it used to in this list. > > We se

QVariant precision issues

2015-10-27 Thread Albert Astals Cid
Hi, i remember a while ago an issue with QVariant not storing doubles the same way it used to in this list. We seem to have hit that in step https://build.kde.org/job/step%20master%20kf5-qt5/PLATFORM=Linux,compiler=gcc/ 19/testReport/%28root%29/TestSuite/stepcore_test_metaobject/ Does anyone rem