Function transformDecimals

  • Adjusts a BigNumber by the difference between the current and desired decimals

    Parameters

    • value: BigNumber

      The value to transform

    • fromDecimals: number

      the current decimals of the number

    • toDecimals: number

      the desired decimals of the number

    Returns BigNumber

    the transformed value

Generated using TypeDoc