Skip to content

Commit

Permalink
[sql-hint addon] Use all applicable decimal positions in convertNumbe…
Browse files Browse the repository at this point in the history
…rToCur

Closes codemirror#4057
  • Loading branch information
harshvardhan145 authored and marijnh committed Jun 7, 2016
1 parent 431dd1b commit ecd6976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/hint/sql-hint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ecd6976

Please sign in to comment.