2 Repos
Libraries that provide immutable money objects with safe addition, subtraction, comparison, and formatting operations.
Distinct from Immutable Date Libraries: Distinct from Immutable Date Libraries: applies the immutable pattern specifically to monetary values rather than dates.
Explore 2 awesome GitHub repositories matching data & databases · Monetary Value Objects. Refine with filters or upvote what's useful.
Dinero.js is a TypeScript-first library for creating, calculating, and formatting monetary values. It provides immutable money objects that represent amounts in the smallest currency subdivision as integers, ensuring precision and preventing floating-point errors. The library enforces same-currency rules on arithmetic operations and validates currency codes against ISO 4217 definitions at creation time. The library distinguishes itself through a calculator plugin architecture that delegates arithmetic operations to interchangeable backends, supporting number, bigint, or custom precision libra
Provides immutable money objects with safe arithmetic, comparison, and formatting operations.
This is a PHP library for handling financial calculations using value objects. It represents monetary amounts as integers to avoid floating-point precision errors and ensure mathematical accuracy during processing and storage. The library utilizes an immutable value object pattern where calculations return new instances to prevent side effects. It employs currency-aware arithmetic to restrict mathematical operations to objects sharing the same currency and uses interface-based logic to delegate currency conversion to external exchange providers. Capabilities include international currency fo
Provides immutable value objects that represent monetary amounts as integers to ensure mathematical accuracy.