Function formatBNCurrency

  • Formats a big number value by prefixing it with $

    Parameters

    • n: BigNumber
    • decimalPlaces: number = 2

      The decimal place. (optional)

    • symbol: string = '$'

      The currency symbol. (optional)

    • position: SymbolPosition = SymbolPosition.BEFORE

      The symbol position. (optional)

    Returns string

    The formatted string from the given BigNumber, decimal places, symbol and position.

Generated using TypeDoc