Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

currency: Currency
denominator: BN
numerator: BN
token: Token

Accessors

  • get quotient(): BN
  • Returns BN

  • get raw(): BN
  • Returns BN

Methods

  • isZero(): boolean
  • toExact(format?: object): string
  • To exact

    example
    1 -> 1
    1.234 -> 1.234
    1.123456789876543 -> 1.123456789

    Parameters

    • format: object = ...

    Returns string

  • toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string
  • To fixed

    example
    1 -> 1.000000000
    1.234 -> 1.234000000
    1.123456789876543 -> 1.123456789

    Parameters

    • decimalPlaces: number = ...
    • Optional format: object
    • rounding: Rounding = Rounding.ROUND_DOWN

    Returns string

  • toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string
  • Parameters

    • significantDigits: number = ...
    • Optional format: object
    • rounding: Rounding = Rounding.ROUND_DOWN

    Returns string