• Format a value expressed in fromUnits to a decimal string expressed in toUnits.

    Parameters

    • value: FixedPointNumber

      The value to format.

    • fromUnits: Units

      The units of the value to format.

    • toUnits: Units

      The units to format the value to.

    • OptionaldisplayDecimals: number

    Returns string

    The formatted value as a decimal string.