import e from "./exponent.js";
//#region ../../node_modules/d3-format/src/precisionPrefix.js
function t(t, n) {
	return Math.max(0, Math.max(-8, Math.min(8, Math.floor(e(n) / 3))) * 3 - e(Math.abs(t)));
}
//#endregion
export { t as default };
