/** * Round a value to max. two decimals */ const getValueWithTwoDecimals = weight => (weight ? Math.round(weight * 100) / 100 : 0); export default getValueWithTwoDecimals;
/** * Round a value to max. two decimals */ const getValueWithTwoDecimals = weight => (weight ? Math.round(weight * 100) / 100 : 0); export default getValueWithTwoDecimals;