1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00

Fixed precision displaying wrong

This commit is contained in:
Acamaeda 2020-10-21 21:18:39 -04:00
parent 38391cac2a
commit f5213e8158
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,7 @@
# The Modding Tree changelog:
- Fixed some numbers not displaying with enough digits.
### v2.1.3.1 - 10/21/20
- Fixed the update function.

View file

@ -52,6 +52,8 @@ function format(decimal, precision=2) {
}
function formatWhole(decimal) {
decimal = new Decimal(decimal)
if (decimal.gte(1e9)) return format(decimal, 2)
return format(decimal, 0)
}