mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 02:32:55 +02:00
Fix very large number appearing as NaN
This commit is contained in:
@@ -56,7 +56,9 @@ class NumeralFormatter {
|
||||
if(Math.abs(n) < 1000) {
|
||||
return this.format(n, "$0.00");
|
||||
}
|
||||
return this.format(n, "$0.000a");
|
||||
const str = this.format(n, "$0.000a");
|
||||
if(str === "$NaNt") return '$'+this.format(n, '0.000e0');
|
||||
return str;
|
||||
}
|
||||
|
||||
formatSkill(n: number): string {
|
||||
|
||||
Reference in New Issue
Block a user