Value in currency to express an amount.

For instance $10.34 will be instantiate as the following:

Example

const dollar = new Currency("dollar", 2);
const price = new Amount(1034, dollar);

Hierarchy

  • Amount

Constructors

Properties

currency: Currency = ...

Amount currency.

value: number = 0

Amount value.

Methods

Generated using TypeDoc