"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.js");const o=require("./decimal.js"),n=require("./is.js");function l(r,e=0){if(!n.isDef(r))return;const t=10**e;return o.div(Math.round(o.mul(r,t)),t)}function h(r,e=0){if(!n.isDef(r))return;const t=10**e;return o.div(Math.floor(o.mul(r,t)),t)}function M(r,e){if(!n.isDef(r))return;let t=typeof e<"u"?l(r,e):r;const f=t<0;f&&(t=Math.abs(t));const s=String(t).split("."),d=s[0].split(""),u=s[1]||"";let i="";return d.reverse().forEach((c,a)=>{a!==0&&a%3===0?i=`${c},${i}`:i=c+i}),(f?"-":"")+i+(u?`.${u}`:"")}exports.floorWith=h;exports.roundWith=l;exports.toDecimalMark=M;
