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
-