"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.formatPrice = void 0;
const formatPrice = function () {
  let price = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  let {
    numDecimals = 0
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  return parseFloat(price / Math.pow(10, numDecimals));
};
exports.formatPrice = formatPrice;
//# sourceMappingURL=legacy.js.map