Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Currency

Hierarchy

Index

Properties

Protected _data

_data: Data

Private _isDisposed

_isDisposed: boolean = false

Accessors

isDisposed

  • get isDisposed(): boolean
  • Returns boolean

Methods

code

  • code(): string
  • ISO 4217 three-letter code, e.g, "CNY"

    Returns string

dispose

  • dispose(): void
  • Returns void

empty

  • empty(): boolean
  • is this a usable instance?

    Returns boolean

format

  • format(): string
  • output format The format will be fed three positional parameters, namely, value, code, and symbol, in this order.

    Returns string

fractionSymbol

  • fractionSymbol(): string
  • fraction symbol, e.g, "¢"

    Returns string

fractionsPerUnit

  • number of fractionary parts in a unit, e.g, 100

    Returns Integer

name

  • name(): string
  • currency name, e.g, "Renminbi"

    Returns string

numericCode

  • ISO 4217 numeric code, e.g, "840"

    Returns Integer

rounding

  • rounding convention

    Returns Rounding

symbol

  • symbol(): string
  • symbol, e.g, "¥"

    Returns string

triangulationCurrency

  • currency used for triangulated exchange when required

    Returns Currency

Static equal

  • operator

    ==

    Parameters

    Returns boolean