"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.formatPercent = void 0;

var _decimals = require("./decimals");

const formatPercent = (number, precision) => "".concat((0, _decimals.roundToDecimal)(number * 100, typeof precision === 'number' ? precision : 2), "%");

exports.formatPercent = formatPercent;