diff --git a/src/_lib/roundingMethods/index.ts b/src/_lib/roundingMethods/index.ts index 9d5b5819cd..565421d865 100644 --- a/src/_lib/roundingMethods/index.ts +++ b/src/_lib/roundingMethods/index.ts @@ -8,11 +8,11 @@ const RoundingMap: RoundingFnsMap = { ceil: Math.ceil, round: Math.round, floor: Math.floor, - trunc: (value: number) => value < 0 ? Math.ceil(value) : Math.floor(value), // Math.trunc is not supported by IE + trunc: (value: number) => (value < 0 ? Math.ceil(value) : Math.floor(value)), // Math.trunc is not supported by IE } export function getRoundingMethod(method: RoundingMethod) { return RoundingMap[method] } -export const defaultRoundingMethod : RoundingMethod = 'trunc' +export const defaultRoundingMethod: RoundingMethod = 'trunc'