hiNibble

Returns high 4 bits of a byte

T
hiNibble
(
T
)
(
T b
)

Examples

assert(hiNibble(0xFE) == 0x0F);

Meta