--- layout: stdlib-reference --- # bitfieldExtract ## Description bitfieldExtract extracts a subset of the bits of value and returns it in the least significant bits of the result. The range of bits extracted is [offset, offset + bits - 1]. ## Signature
T bitfieldExtract<T>(
T value,
uint offset,
uint bits);
## Generic Parameters
#### T
## Parameters
#### value : [T](bitfieldextract-8.html#typeparam-T)
#### offset : uint
#### bits : uint