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.b...@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
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to