Function setBitHigh

  • Sets the specified bit in the given number to 1.

    Returns

    The modified number with the specified bit set to 1.

    Parameters

    • value: number

      The original number whose bit will be modified.

    • position: number

      The position of the bit to set to 1 (0-based index).

    Returns number

Generated using TypeDoc