Object that stores money in cent amounts of a specific currency.

interface CentPrecisionMoney {
    centAmount: number;
    currencyCode: string;
    fractionDigits: number;
    type: "centPrecision";
}

Properties

centAmount: number

Amount in the smallest indivisible unit of a currency, such as:

* Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
* The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
currencyCode: string

Currency code compliant to ISO 4217.

fractionDigits: number

The number of default fraction digits for the given currency, like 2 for EUR or 0 for JPY.

type: "centPrecision"