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 للتعامل مع الحسابات المالية باستخدام كائنات القيمة. تمثل المبالغ النقدية كأعداد صحيحة لتجنب أخطاء دقة الفاصلة العائمة وضمان الدقة الرياضية أثناء المعالجة والتخزين. تستخدم المكتبة نمط كائن القيمة غير القابل للتغيير حيث تعيد الحسابات مثيلات جديدة لمنع الآثار الجانبية. توظف حساباً واعياً بالعملة لتقييد العمليات الرياضية على الكائنات التي تشترك في نفس العملة وتستخدم منطقاً قائماً على الواجهة لتفويض تحويل العملة إلى مزودي صرف خارجيين. تشمل القدرات تنسيق العملة الدولية للسلاسل القابلة للقراءة البشرية المترجمة وتسلسل JSON الموحد لنقل البيانات النقدية عبر واجهات برمجة تطبيقات الشبكة.
Provides immutable value objects that represent monetary amounts as integers to ensure mathematical accuracy.