Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.2
-
None
-
c3effc6cd3a66b6c02048d8ad85c7ed3bb3c1463
Description
Number.toFixed doesn't round before the decimal point.
(12.5).toFixed() returns 12. It should return 13.
Note that rounding after the decimal point is correct:
(12.05).toFixed(1) yields 12.1.
In Quick1, the return value is correct.
Attachments
Issue Links
- is duplicated by
-
QTBUG-44039 JS toFixed result is wrong with QtQuick 2
-
- Closed
-