Inttegro.Money (inttegro v0.2.0)

Copy Markdown View Source

Currency and amount values shared by commerce and money-movement APIs.

Inttegro represents amounts as integers in the currency's minor unit. For example, a value of 5_000 with currency :ghs represents GHS 50.00. Never use floating-point arithmetic for an amount sent to the API.