Expand description
Cashmoney is a library for expressing monetary values and performing safe monetary calculations suitable for financial applications.
Macros§
- cad
- Creates Money of the given amount with CAD currency. Example:
cad!(13.37). - usd
- Creates Money of the given amount with USD currency. Example:
usd!(13.37). - zero
- Creates 0-valued money with the special
ZeroNonecurrency.
Structs§
- Fractional
Money - A monetary value in a certain currency with a possibly invalid denomination, e.g., 13.37 USD or 1.337 USD.
- Money
- A monetary value in a certain currency with a valid denomination, e.g., 13.37 USD but not 1.337 USD.