2 रिपॉजिटरी
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.
यह वैल्यू ऑब्जेक्ट्स का उपयोग करके वित्तीय गणनाओं को संभालने के लिए एक PHP लाइब्रेरी है। यह प्रसंस्करण और भंडारण के दौरान गणितीय सटीकता सुनिश्चित करने और फ्लोटिंग-पॉइंट परिशुद्धता त्रुटियों से बचने के लिए मौद्रिक राशियों को पूर्णांकों के रूप में दर्शाती है। लाइब्रेरी एक अपरिवर्तनीय वैल्यू ऑब्जेक्ट पैटर्न का उपयोग करती है जहाँ गणना दुष्प्रभाव को रोकने के लिए नए इंस्टेंस लौटाती है। यह एक ही मुद्रा साझा करने वाले ऑब्जेक्ट्स तक गणितीय संचालन को प्रतिबंधित करने के लिए मुद्रा-जागरूक अंकगणित का उपयोग करती है और बाहरी विनिमय प्रदाताओं को मुद्रा रूपांतरण सौंपने के लिए इंटरफ़ेस-आधारित लॉजिक का उपयोग करती है। क्षमताओं में स्थानीयकृत मानव-पठनीय स्ट्रिंग्स के लिए अंतर्राष्ट्रीय मुद्रा फॉर्मेटिंग और नेटवर्क API पर मौद्रिक डेटा प्रसारित करने के लिए मानकीकृत JSON सीरियलाइज़ेशन शामिल है।
Provides immutable value objects that represent monetary amounts as integers to ensure mathematical accuracy.