mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
fix money formatting for amount under 1000
This commit is contained in:
parent
8c2e661e08
commit
9976ed136c
@ -53,6 +53,9 @@ class NumeralFormatter {
|
||||
}
|
||||
|
||||
formatMoney(n: number): string {
|
||||
if(n < 1000) {
|
||||
return this.format(n, "$0.00");
|
||||
}
|
||||
return this.format(n, "$0.000a");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user