[Interest] Change of qRound
Björn Piltz
bjornpiltz at gmail.com
Thu Nov 25 15:55:17 CET 2021
Hi all,
is there a specific reason for the change of qRound() in Qt 6? qRound(-0.5)
now returns -1 and not 0.
I'm not so interested in correctness, but I have code assuming the range
-0.5 - 255.5 maps to 0-256 which now needs to be updated.
I probably should approximate the more mathematically correct -0.499... -
255.5
Thanks!
Björn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20211125/b9dbd295/attachment.html>
More information about the Interest
mailing list