Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
5.4.0
Description
mouseArea.onClicked:
{ var num = 12.5; var n = num.toFixed(0); console.log(n); }logs 12, while with QtQuick1 it is 13.
Also http://www.w3schools.com/jsref/jsref_tofixed.asp is returning 13.
Attachments
Issue Links
- duplicates
-
QTBUG-43885 JavaScript Number.prototype.toFixed rounding error before decimal point
-
- Closed
-
For Gerrit Dashboard: QTBUG-44039 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
104701,2 | V4: fix ToFixed rounding for 0 fraction digits. | 5.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |