@teakit/arith
@teakit/arith is a TypeScript arbitrary-precision decimal arithmetic package
for ESM and browser environments.
Guide
Use this page as the short human entrypoint. Keep detailed API behavior in the method reference pages.
Installation & Usage
Use string inputs for exact decimal values. Always create values with
Arith.from(...).
Package Contract
- Import
Arithfrom@teakit/arith. - Create values with
Arith.from(...); do not usenew Arith(...)or callArith(...). - Prefer string inputs for exact decimal values.
- Use Arith methods instead of JavaScript arithmetic or comparison operators.
- The package is browser-safe ESM and has no Node runtime imports.
Reference Map
LLMs
AI agents should start with LLMs, then open only the relevant method reference file. Reference pages keep human usage first and AI-specific contracts near the end.