mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
Fixed formatAbsurdNumber
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user