Fixed formatAbsurdNumber

This commit is contained in:
Tesseract1234567890 2021-06-02 21:33:27 -04:00
parent 75227233f3
commit 1b6058dd0a

@ -52,7 +52,7 @@ class NumeralFormatter {
return this.format(n, "0.000a");
}
formatAbsurdNumber(n: number, decimalPlaces: string): string {
formatAbsurdNumber(n: number, decimalPlaces: number): string {
for(let i = 0; i < extraFormats.length; i++) {
if(extraFormats[i] < n && n <= extraFormats[i]*1000) {
return this.format(n/extraFormats[i], '0.'+'0'.repeat(decimalPlaces))+extraNotations[i];