QML Number() produces wrong output
-
How do I make toFixed() display all 4 decimal places on Windows CE, similar to the desktop?
The code:
@text: level.toFixed(4)@Win CE - not showing decimal places:
!http://i.troll.ws/14f21476.jpg!Win 32 - desktop shows all four places:
!http://i.troll.ws/0427b4e9.jpg!Thanks in advance,
Chris
-
Looks like some rounding and special notation.
What causes 64.8874 to displayed as 65.//-4?
-
that toFixed() is as far as I know part of the Javascript engine that QML runs on top of, if its indeed doing this wrong, try getting the latest version of Qt or reporting a bug if you are indeed running the latest already.
-
I'm using 4.8.4 and it seems all doubles are oddly formatted when displayed in QML.
The format seems intentional, almost like a scientific notation format?
-
QML Number("0.117") produces
"0.0;7"
Not a typo, the number converts wrong and there is a semicolon in the output.
Perhaps an issue with ARM floating point?
Does anyone else see this issue?