Currencies.Currencies
— ModuleCurrencies
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 symbolname
: 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.Currency
— TypeThis is a singleton type, intended to be used as a label for dispatch purposes
Currencies.code
— FunctionReturns the ISO 4217 code associated with this value
Currencies.currency
— FunctionReturns an instance of the singleton type Currency{sym}
Currencies.name
— FunctionReturns the ISO 4217 name associated with this value
Currencies.symbol
— FunctionReturns the symbol associated with this value
Currencies.unit
— FunctionReturns the minor unit associated with this value