Function constrain

  • Constrain a bigint within a minimum and a maximum value.

    Returns

    x<min: min, x>max: max, x

    Parameters

    • x: bigint

      a bigint

    • minv: bigint

      minimum value

    • maxv: bigint

      maximum value

    Returns bigint

Generated using TypeDoc