Welcome to the FixedPrecision documentation! This library provides fixed-precision decimal arithmetic for JavaScript/TypeScript using BigInt for internal representation.
- Quick Start - Get up and running in minutes
- Installation - Installation and setup instructions
- Basic Concepts - Core concepts and architecture
- Arithmetic Operations - Addition, subtraction, multiplication, division
- Comparison Methods - Equality, greater/less than comparisons
- Rounding & Scaling - Rounding modes and decimal place adjustment
- Conversion Methods - Converting between types (string, number, bigint)
- Minimal Build - Smaller entry point for core decimal operations
- Raw Operations - Operations without scaling (plus, minus, product, etc.)
- Precision Factories - Creating isolated precision contexts
- Performance Guide - Performance considerations and best practices
- Error Handling - Common errors and how to handle them
- Full API Reference - Complete API documentation
- Type Definitions - TypeScript type definitions
- Configuration - Global and per-instance configuration
- Financial Calculations - Currency and financial examples
- Scientific Computing - Scientific and engineering examples
- Game Development - Game development examples
- Common Patterns - Common usage patterns
- Migration Guide - Migrating from other decimal libraries
- Integration Guide - Integrating with frameworks and tools
- Testing Guide - Testing strategies and examples
Current Version: 1.2.0
TypeScript Support: Full TypeScript support with strict typing
Browser Support: Modern browsers with BigInt support
Node.js Support: Node.js 10+ (with BigInt support)
See CONTRIBUTING.md for contribution guidelines.
MIT License - See LICENSE for details.