minor unit of the currency.
name of the currency.
Deserializes a Currency from an 'array of bytes'.
The 'array of bytes' to deserialize.
The position in the 'array of bytes' to start reading from.
Result containing either an the new offset of the byte array or an Error.
Tests if two currencies are identical.
Currency to check against.
true if the currencies are identical.
Two currencies are identical if they have the same 'minorUnit' as well as the same 'name'!
Tests if two currencies are different.
Currency to check against.
true if the currencies are different.
Two currencies are different if they have the same 'name' but a different 'minorUnit' value!
Generated using TypeDoc
Monetary unit used to express a value.
Remarks
The minor unit of a currency, as described in the ISO 4217 standard, is the maximal size of the fractional part that can be used to describe the value when in a decimal form.
Example
For instance, US dollar has a minor unit of 2. This means that value in US dollar must be express with two digits after the decimal separator like in the following: 10.34
This can be done with the following instantiation: