Constructors
constructor
- new CurrencyDecimals(currency, decimals): CurrencyDecimals
Parameters
currency: string
decimals: number
Properties
Private
Readonly
_currency
_currency: string
Private
Readonly
_decimals
_decimals: number
Methods
currency
- currency(): string
Returns string
decimals
- decimals(): number
Returns number
doesNotExceedDecimals
- doesNotExceedDecimals(value): boolean
Returns boolean
round
- round(value): number
Returns number
Static
decimalsCount
- decimalsCount(value): number
Returns number
Static
knownCurrencyDecimals
- knownCurrencyDecimals(currency): number
Returns number
Static
newFromKnownCurrencies
- newFromKnownCurrencies(currency, defaultValue?): CurrencyDecimals
Parameters
currency: string
Optional
defaultValue: number
Currency Helper utility for parse string to number with currency value.