bitval
bitval |
Purpose
Synopsis
function bitval(i:integer):integer
Argument
i
|
Bit number (between 0 and 31)
|
Return value
Value of the selected bit.
Example
In the following,
i takes the value 1,
j takes the value -2147483648, and
k takes the value 16:
i:= bitval(0) j:= bitval(7) k:= bitval(4)
Further information
This function computes the value corresponding to a bit number. The evaluation of
bitval(i) corresponds to
bitshift(1,i)
Related topics