From 40aa37db5cf5b8780131c12e783be64f88656f0e Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 20 Jan 2014 21:56:08 +0100 Subject: [PATCH] Round result to 4 decimals --- qml/harbour-currencyconverter.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/harbour-currencyconverter.qml b/qml/harbour-currencyconverter.qml index 6785d0f..0228315 100644 --- a/qml/harbour-currencyconverter.qml +++ b/qml/harbour-currencyconverter.qml @@ -102,7 +102,7 @@ ApplicationWindow { onMessage: { if(messageObject.quote) { - result = String(messageObject.quote * multiplier); + result = Number(messageObject.quote * multiplier).toFixed(4); } else { console.log(messageObject.error); }