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