ZELYRA
Home > Packages > zelyra/decimal

zelyra/decimal

v0.1.50 MATH Apache-2.0 / MIT

Exact 128-bit fixed-point decimal arithmetic free of floating-point inaccuracies, ideal for finance and currencies.

✓ Built-in Module – automatically available

Usage Example

type Money = Decimal(12, 2) let subtotal: Money = 19.99 let tax_rate: Decimal(4, 4) = 0.1900 let total: Money = subtotal * (1.0 + tax_rate) print(total)

Features & Capabilities

Exact 128-bit fixed-point decimal arithmetic free of floating-point inaccuracies, ideal for finance and currencies. This library is designed with strict nominal type boundaries, deterministic memory layouts, and full verification against memory corruption.

← Back to Package Registry