V4: fix ToFixed rounding for 0 fraction digits.
authorErik Verbruggen <erik.verbruggen@digia.com>
Wed, 28 Jan 2015 08:34:10 +0000 (09:34 +0100)
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>
Tue, 3 Mar 2015 10:04:31 +0000 (10:04 +0000)
commitc3effc6cd3a66b6c02048d8ad85c7ed3bb3c1463
tree0f3a90e0350de5243e0fb43ec0d7994cc18cc77a
parent29bb4495e6b827bd8dd443ce07cb7ccda14645c1
V4: fix ToFixed rounding for 0 fraction digits.

(12.5).toFixed() should return 13, not 12.

Task-number: QTBUG-43885
Task-number: QTBUG-44039
Change-Id: Id2b19641e8c12dd5755d8447508b74567e4a2b9b
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/qml/jsruntime/qv4numberobject.cpp
tests/auto/qml/qjsengine/tst_qjsengine.cpp