Currencies.CurrenciesModule

Currencies

This package provides the Currency singleton type, based on the ISO 4217 standard together with five methods:

  • symbol: The symbol of the currency.
  • currency: The singleton type instance for a particular currency symbol
  • name: The full name of the currency.
  • code: The ISO 4217 code for the currency.
  • unit: The minor unit, i.e. number of decimal places, for the currency.

See README.md for the full documentation

Copyright 2019-2020, Eric Forgy, Scott P. Jones and other contributors

Licensed under MIT License, see LICENSE.md

Currencies.CurrencyType

This is a singleton type, intended to be used as a label for dispatch purposes

Currencies.codeFunction

Returns the ISO 4217 code associated with this value

Currencies.nameFunction

Returns the ISO 4217 name associated with this value

Currencies.unitFunction

Returns the minor unit associated with this value