diff --git a/example/example.qml b/example/example.qml index 283e8ec..aabddc6 100644 --- a/example/example.qml +++ b/example/example.qml @@ -407,12 +407,14 @@ RibbonWindow { validator: DoubleValidator { bottom: Math.min(spinbox.from, spinbox.to) top: Math.max(spinbox.from, spinbox.to) + decimals: 2 + notation: DoubleValidator.StandardNotation } textFromValue: function(value, locale) { return Number(value / 100).toLocaleString(locale, 'f', 2) } valueFromText: function(text, locale) { - return Number.fromLocaleString(locale, text) * 100 + return Math.round(Number.fromLocaleString(locale, text) * 100) } } }