Skip to main content

DenominatedNumber

Hierarchy

  • Number
    • DenominatedNumber

Index

Constructors

constructor

  • new DenominatedNumber(planck: string | number | bigint | boolean, decimals: number, denomination?: string): DenominatedNumber
  • Parameters

    • planck: string | number | bigint | boolean
    • decimals: number
    • optionaldenomination: string

    Returns DenominatedNumber

Properties

readonlydecimals

decimals: number

optionalreadonlydenomination

denomination?: string

readonlyplanck

planck: bigint

Methods

mapFromNumber

mapFromPlanck

toLocaleString

  • toLocaleString(locales?: string | string[], options?: NumberFormatOptions): string
  • toLocaleString(locales?: LocalesArgument, options?: NumberFormatOptions): string
  • Parameters

    • optionallocales: string | string[]
    • optionaloptions: NumberFormatOptions

    Returns string

toString

  • toString(): string
  • Returns string

valueOf

  • valueOf(): number
  • Returns number

staticfromNumber

  • fromNumber(number: string | number, decimals: number, denomination?: string): DenominatedNumber
  • Parameters

    • number: string | number
    • decimals: number
    • optionaldenomination: string

    Returns DenominatedNumber