Returns whether bit n is set (i.e. 1).
n
1
The current int instance is treated as bits of an unknown length.
bool isSet(int n) => getBit(n) == 1;