From ecd6976f2be26614366831c37819738efc8e9dfa Mon Sep 17 00:00:00 2001 From: Harshvardhan Gupta Date: Tue, 7 Jun 2016 01:57:53 -0400 Subject: [PATCH] [sql-hint addon] Use all applicable decimal positions in convertNumberToCur Closes #4057 --- addon/hint/sql-hint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/hint/sql-hint.js b/addon/hint/sql-hint.js index ed8f6d856c..4e84ab9b91 100644 --- a/addon/hint/sql-hint.js +++ b/addon/hint/sql-hint.js @@ -184,7 +184,7 @@ } function convertNumberToCur(num) { - return Pos(Math.floor(num), +num.toString().split('.').pop()); + return Pos(Math.floor(num), +num.toFixed(6).toString().split('.').pop()); } function findTableByAlias(alias, editor) {