Crate cashmoney

Crate cashmoney 

Source
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 ZeroNone currency.

Structs§

FractionalMoney
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.

Enums§

Currency
Supported currencies, identified by their ISO 4217 code.
Error
Error type for the library.