diff --git a/changelog.md b/changelog.md index 46eb8c0..b074645 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ # The Modding Tree changelog: +- Fixed formatting for small negative numbers. + # v2.6.4.2 - 6/17/21 - Fixed a bug with the endgame screen. - Fixed hotkey-related crash. diff --git a/js/utils/NumberFormating.js b/js/utils/NumberFormating.js index 87349bc..06b158b 100644 --- a/js/utils/NumberFormating.js +++ b/js/utils/NumberFormating.js @@ -47,7 +47,7 @@ function format(decimal, precision = 2, small) { player.hasNaN = true; return "NaN" } - if (decimal.sign < 0) return "-" + format(decimal.neg(), precision) + if (decimal.sign < 0) return "-" + format(decimal.neg(), precision, small) if (decimal.mag == Number.POSITIVE_INFINITY) return "Infinity" if (decimal.gte("eeee1000")) { var slog = decimal.slog()