// @flow
export const roundToDecimalPlace = (number: number, place: number = 1): number =>
  Math.round(number * 10 * place) / (10 * place);

// @flow
export const roundToDecimalPlace = (number: number, place: number = 2): number =>
  Math.round(number * 10 * place) / (10 * place);

Change default decimal place to 2
Change default decimal place to 2
