getBit

Returns bit at position pos in integer b

bool
getBit
(
T
)
(
T b
,
uint pos
)

Examples

assert(getBit(1, 0) == 1);

Meta