clearBit method

int clearBit(
  1. int n
)

Returns a new int with the nth bit cleared.

The current int instance is treated as bits of an unknown length.

Implementation

int clearBit(int n) {
  _mustBeAtLeast0(n);
  return _clearBit(n);
}