Function intRange

  • Calculates the range of an integer based on the sign and number of bits.

    Parameters

    • sign: "signed" | "unsigned"

      Specifies whether the integer is signed or unsigned.

    • bits: number

      The number of bits in the integer.

    Returns [min: number, max: number]

    An array containing the minimum and maximum values of the integer range.

Generated using TypeDoc