import { formatDecimalParts as e } from "./formatDecimal.js";
//#region ../../node_modules/d3-format/src/formatRounded.js
function t(t, n) {
	var r = e(t, n);
	if (!r) return t + "";
	var i = r[0], a = r[1];
	return a < 0 ? "0." + Array(-a).join("0") + i : i.length > a + 1 ? i.slice(0, a + 1) + "." + i.slice(a + 1) : i + Array(a - i.length + 2).join("0");
}
//#endregion
export { t as default };
