GoMoney provides ability to work with monetary value using a currency's smallest unit. This package provides basic and precise Money operations such as rounding, splitting and allocating. Monetary values should not be stored as floats due to small rounding differences.
Features
- Provides a Money struct which stores information about an Money amount value and its currency
- Provides a Money.Amount struct which encapsulates all information about a monetary unit
- Represents monetary values as integers, in cents. This avoids floating point rounding errors
- Represents currency as Money.Currency instances providing a high level of flexibility
- Initialize Money by using smallest unit value
- Go-money provides base compare operations like equals, greater than, greater than or equal
Categories
Code FormattersLicense
MIT LicenseFollow Money
Other Useful Business Software
Enterprise-grade ITSM, for every business
Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Money!