mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
feat(numbers!): rounding
This commit is contained in:
@@ -43,7 +43,7 @@ export function getSign (number) {
|
||||
}
|
||||
|
||||
export function round (number, nDigits) {
|
||||
return Math.abs(number.toFixed(nDigits || 1));
|
||||
return Math.abs(number.toFixed(nDigits || 0));
|
||||
}
|
||||
|
||||
export function getXPMessage (val) {
|
||||
|
||||
Reference in New Issue
Block a user