generated from nhcarrigan/template
fix: do not display decimal places for integer-typed quantities #232
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Improvement
Summary
Several quantity types in the game are always whole numbers, but the
formatNumberutility currently displays them with decimal places (e.g.1.00 / 72.0). These should display as plain integers.Affected Values
Current Behaviour
Expected Behaviour
Suggested Fix
Add an
integerflag or a separate formatting path for known integer quantities, or pass{ maximumFractionDigits: 0 }when displaying these values.✨ This issue was created with help from Hikari~ 🌸