Skip to content

Commit

Permalink
Round result to 4 decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghus committed Feb 7, 2014
1 parent f69f540 commit 40aa37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qml/harbour-currencyconverter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 40aa37d

Please sign in to comment.