Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_tools
get_bit/2
Description
get_bit/2 is an Erlang function exported by "age_tools" module.
Gets bit status within an integer value.
References
•set_bit_on/2
•set_bit_off/2
Parameters
Name
Type
Int
integer()
Integer value.
Bit
Bit position
Result
Value or Type
boolean()
Returns true when the selected bit is ON.
Code Sample
> age_tools:get_bit(1002, 1). true