"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const formatDecimal = require("./src-formatDecimal.cjs");
const formatPrefixAuto = require("./src-formatPrefixAuto.cjs");
const formatRounded = require("./src-formatRounded.cjs");
const formatTypes = {
  "%": (x, p) => (x * 100).toFixed(p),
  "b": (x) => Math.round(x).toString(2),
  "c": (x) => x + "",
  "d": formatDecimal.default,
  "e": (x, p) => x.toExponential(p),
  "f": (x, p) => x.toFixed(p),
  "g": (x, p) => x.toPrecision(p),
  "o": (x) => Math.round(x).toString(8),
  "p": (x, p) => formatRounded.default(x * 100, p),
  "r": formatRounded.default,
  "s": formatPrefixAuto.default,
  "X": (x) => Math.round(x).toString(16).toUpperCase(),
  "x": (x) => Math.round(x).toString(16)
};
exports.default = formatTypes;
//# sourceMappingURL=src-formatTypes.cjs.map
