abstract class Currency(val code: String, val name: String, val symbol: String, val formatDecimals: Int) extends UnitOfMeasure[Money]
Represents a Currency, which is the Unit of Measure for Money
Represents a Currency, which is the Unit of Measure for Money
- Value Params
- code
Currency code
- formatDecimals
Number of decimals in standard formatting
- name
Currency name
- symbol
Currency symbol
- Companion
- object
object ARS
object AUD
object BRL
object BTC
object CAD
object CHF
object CLP
object CNY
object CZK
object DKK
object ETH
object EUR
object GBP
object HKD
object INR
object JPY
object KRW
object LTC
object MXN
object MYR
object NAD
object NOK
object NZD
object RUB
object SEK
object TRY
object USD
object XAG
object XAU
object ZAR
Value members
Concrete methods
Inherited methods
Applies the converterFrom method to a value
Applies the converterFrom method to a value
- Type Params
- N
Type
- Value Params
- n
N value in terms of this Unit
- num
Numeric[N]
- Inherited from
- UnitOfMeasure
Applies the converterTo method to a value
Applies the converterTo method to a value
- Type Params
- N
Type
- Value Params
- n
N value in terms of the ValueUnit
- num
Numeric[N]
- Inherited from
- UnitOfMeasure
Extractor method for getting the Numeric value of a Quantity in this UnitOfMeasure
Extractor method for getting the Numeric value of a Quantity in this UnitOfMeasure
- Value Params
- q
A - The Quantity being matched
- Inherited from
- UnitOfMeasure