• Convert a float number representation to a fixed point decimal. Defaults to 18, which is X18 in contracts ex. toFixedPoint(3.14, 2) => bigint("314").

    Parameters

    • val: BigDecimalish
    • decimals: number = 18

      Number of decimals to include in the fixed point representation

    Returns bigint