fix: Number format (#6028)
This commit is contained in:
parent
394f451b6c
commit
6b508cf809
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ window.format_number = function (v, format, decimals) {
|
|||
|
||||
v = flt(v, decimals, format);
|
||||
|
||||
if (v < 0) var is_negative = true;
|
||||
let is_negative = false;
|
||||
if (v < 0) is_negative = true;
|
||||
v = Math.abs(v);
|
||||
|
||||
v = v.toFixed(decimals);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue