Skip to content

Commit ecd6976

Browse files
harshvardhan145marijnh
authored andcommitted
[sql-hint addon] Use all applicable decimal positions in convertNumberToCur
Closes codemirror#4057
1 parent 431dd1b commit ecd6976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/hint/sql-hint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
}
185185

186186
function convertNumberToCur(num) {
187-
return Pos(Math.floor(num), +num.toString().split('.').pop());
187+
return Pos(Math.floor(num), +num.toFixed(6).toString().split('.').pop());
188188
}
189189

190190
function findTableByAlias(alias, editor) {

0 commit comments

Comments
 (0)