API Overview

Quick reference for all exports from @wzo/calc.

API Overview

All exports from @wzo/calc, grouped by purpose:

Expression / Formatting

  • calc(expr, options?) — for computation: expression evaluation + (optional) formatting, throws on error
  • fmt(value, options?) — for display: a display-safe version of calc (supports arithmetic + formatting), falls back to _error on error

Chaining

Standalone Functions

Aggregation

Global Config