[Interest] Change of qRound
Andreas Buhr
andreas.buhr at qt.io
Thu Nov 25 16:16:44 CET 2021
Hi
On 25.11.21 15:55, Björn Piltz wrote:
> Hi all,
> is there a specific reason for the change of qRound() in Qt 6?
> qRound(-0.5) now returns -1 and not 0.
It was changed to match standard C++ behavior, see
https://codereview.qt-project.org/c/qt/qtbase/+/301346
cheers,
Andreas
--
Andreas Buhr
Senior Software Engineer
The Qt Company
Erich-Thilo-Str. 10
12489 Berlin
Germany
andreas.buhr at qt.io
www.qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B
More information about the Interest
mailing list