CURRENCY_D
Currency daemon. Loads the configured denominations and their relative
values from the CURRENCY config key, exposes ordered lookups, and
converts amounts between denominations. All values are relative to the
lowest (base) denomination.
# public valid_currency_type
Reports whether a name is a recognised denomination.
# public convert_currency
Converts an amount from one denomination to another, rounded to the nearest whole unit.
# public fconvert_currency
Converts an amount between denominations, returning the unrounded floating-point result for fractional values.
# public lowest_currency
Returns the name of the lowest-valued (base) denomination.
# public highest_currency
Returns the name of the highest-valued denomination.
# public currency_list
Returns all denomination names ordered from lowest to highest value.
# public currency_value
Returns the relative value of a denomination, in base units.
# public get_currency_map
Returns a copy of the denomination-to-value mapping.