custom

fun custom(code: String, minorUnits: Int): CustomCurrency(source)

Creates a CustomCurrency.

Parameters

code

The code of the currency.

minorUnits

The minor units (i.e., the decimal places) of the currency.

Throws

When minorUnits is lower than a zero.


Creates a CustomCurrency.

Parameters

code

The code of the currency.

minorUnits

The minor units (i.e., the decimal places) of the currency.

config

An optional block to configure the CustomCurrency object.

Throws

When minorUnits is lower than a zero.