[{"data":1,"prerenderedAt":247},["ShallowReactive",2],{"navigation-en":3,"page-\u002Fapi":78,"surround-\u002Fapi":242},[4,26,56],{"title":5,"path":6,"stem":7,"children":8},"Introduction","\u002Fguide","1.guide\u002F1.index",[9,10,14,18,22],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"Getting Started","\u002Fguide\u002Fgetting-started","1.guide\u002F2.getting-started",{"title":15,"path":16,"stem":17},"Number Formatting","\u002Fguide\u002Fformat-tokens","1.guide\u002F3.format-tokens",{"title":19,"path":20,"stem":21},"Performance","\u002Fguide\u002Fperformance","1.guide\u002F4.performance",{"title":23,"path":24,"stem":25},"Caveats","\u002Fguide\u002Fcaveats","1.guide\u002F5.caveats",{"title":27,"path":28,"stem":29,"children":30},"API Overview","\u002Fapi","2.api\u002F0.index",[31,32,36,40,44,48,52],{"title":27,"path":28,"stem":29},{"title":33,"path":34,"stem":35},"calc()","\u002Fapi\u002Fcalc","2.api\u002F1.calc",{"title":37,"path":38,"stem":39},"fmt()","\u002Fapi\u002Ffmt","2.api\u002F2.fmt",{"title":41,"path":42,"stem":43},"Chain API","\u002Fapi\u002Fchain","2.api\u002F3.chain",{"title":45,"path":46,"stem":47},"Standalone Functions","\u002Fapi\u002Fstandalone","2.api\u002F4.standalone",{"title":49,"path":50,"stem":51},"Aggregation","\u002Fapi\u002Faggregate","2.api\u002F5.aggregate",{"title":53,"path":54,"stem":55},"Global Config","\u002Fapi\u002Fconfig","2.api\u002F6.config",{"title":57,"path":58,"stem":59,"children":60},"Examples Overview","\u002Fexamples","3.examples\u002F0.index",[61,62,66,70,74],{"title":57,"path":58,"stem":59},{"title":63,"path":64,"stem":65},"Precision Loss","\u002Fexamples\u002Fprecision-loss","3.examples\u002F1.precision-loss",{"title":67,"path":68,"stem":69},"E-commerce","\u002Fexamples\u002Fecommerce","3.examples\u002F2.ecommerce",{"title":71,"path":72,"stem":73},"Complex Expressions","\u002Fexamples\u002Fcomplex","3.examples\u002F3.complex",{"title":75,"path":76,"stem":77},"Currency Conversion","\u002Fexamples\u002Fcurrency","3.examples\u002F4.currency",{"id":79,"title":27,"body":80,"description":235,"extension":236,"meta":237,"navigation":239,"path":28,"seo":240,"stem":29,"__hash__":241},"content_en\u002F2.api\u002F0.index.md",{"type":81,"value":82,"toc":226},"minimark",[83,87,96,101,133,137,150,153,177,180,190,193],[84,85,27],"h1",{"id":86},"api-overview",[88,89,90,91,95],"p",{},"All exports from ",[92,93,94],"code",{},"@wzo\u002Fcalc",", grouped by purpose:",[97,98,100],"h2",{"id":99},"expression-formatting","Expression \u002F Formatting",[102,103,104,118],"ul",{},[105,106,107,113,114],"li",{},[108,109,110],"a",{"href":34},[92,111,112],{},"calc(expr, options?)"," — for computation: expression evaluation + (optional) formatting, ",[115,116,117],"strong",{},"throws on error",[105,119,120,125,126],{},[108,121,122],{"href":38},[92,123,124],{},"fmt(value, options?)"," — for display: a display-safe version of calc (supports arithmetic + formatting), ",[115,127,128,129,132],{},"falls back to ",[92,130,131],{},"_error"," on error",[97,134,136],{"id":135},"chaining","Chaining",[102,138,139],{},[105,140,141,146,147],{},[108,142,143],{"href":42},[92,144,145],{},"chainAdd \u002F chainSub \u002F chainMul \u002F chainDiv"," — chainable arithmetic, e.g. ",[92,148,149],{},"chainAdd(10).sub(3).mul(2)()",[97,151,45],{"id":152},"standalone-functions",[102,154,155,166],{},[105,156,157,162,163],{},[108,158,159],{"href":46},[92,160,161],{},"add \u002F sub \u002F mul \u002F div \u002F sqrt \u002F pow \u002F mod"," — return ",[92,164,165],{},"number",[105,167,168,173,174],{},[108,169,170],{"href":46},[92,171,172],{},"addStr \u002F … \u002F sqrtStr \u002F powStr \u002F modStr"," — return high-precision ",[92,175,176],{},"string",[97,178,49],{"id":179},"aggregation",[102,181,182],{},[105,183,184,189],{},[108,185,186],{"href":50},[92,187,188],{},"calcSum \u002F calcAvg \u002F calcMedian \u002F calcMax \u002F calcMin"," — array \u002F object-array aggregation",[97,191,53],{"id":192},"global-config",[102,194,195,203],{},[105,196,197,202],{},[108,198,199],{"href":54},[92,200,201],{},"setConfig \u002F resetConfig \u002F getConfig"," — global: error fallback, default format, division precision",[105,204,205,206,209,210,209,213,209,216,219,220,225],{},"Per-call precision: ",[92,207,208],{},"div"," \u002F ",[92,211,212],{},"divStr",[92,214,215],{},"chainDiv",[92,217,218],{},"calcAvg"," accept ",[108,221,222],{"href":54},[92,223,224],{},"{ _precision }"," as a trailing argument to override precision for that call only",{"title":227,"searchDepth":228,"depth":228,"links":229},"",2,[230,231,232,233,234],{"id":99,"depth":228,"text":100},{"id":135,"depth":228,"text":136},{"id":152,"depth":228,"text":45},{"id":179,"depth":228,"text":49},{"id":192,"depth":228,"text":53},"Quick reference for all exports from @wzo\u002Fcalc.","md",{"icon":238},"i-lucide-book-marked",true,{"title":27,"description":235},"mGreGe-fwjtA2wha37OTJcMrxD81W3ialipeQ4hHZLc",[243,245],{"title":23,"path":24,"stem":25,"description":244,"children":-1},"A few edge cases worth knowing before you start — error handling, precision pitfalls, and configuration scope.",{"title":33,"path":34,"stem":35,"description":246,"children":-1},"Main entry point — expression evaluation + formatting.",1783414275960]