Merge pull request #966 from danielyxie/dev

Hotfix number of decimal for very large numbers
This commit is contained in:
hydroflame 2021-05-26 17:55:26 -04:00 committed by GitHub
commit 04921520d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

@ -57,7 +57,7 @@ class NumeralFormatter {
return this.format(n, "$0.00");
}
const str = this.format(n, "$0.000a");
if(str === "$NaNt") return '$'+this.format(n, '0.000e0');
if(str === "$NaNt") return '$'+this.format(n, '0.000e+0');
return str;
}