Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
bitget
bit at specified position
Syntax
y = bitget(x, pos)
Parameters
- x :
a
m
-by-n
matrix of doubles or am1
-by-m2
-by-...-by-mm
hypermatrix of doubles or am
-by-n
matrix of unsigned integers (uint8
,uint16
oruint32
). Must contain positive integer values.- pos :
a
m
-by-n
matrix of doubles or am1
-by-m2
-by-...-by-mm
hypermatrix of doubles or am
-by-n
matrix of unsigned integers (uint8
,uint16
oruint32
). The inputpos
must be in the range 1, 2, ...,bitmax
wherebitmax
is the maximum number of bits inx
. Must contain positive integer values.- y :
a
m
-by-n
matrix of doubles or am1
-by-m2
-by-...-by-mm
hypermatrix of doubles or am
-by-n
matrix of unsigned integers.
Description
Given an unsigned integer x
, this function returns an unsigned integer y
(0
or 1
) which is the bit number pos
from the representation binary of x
.
Examples
Report an issue | ||
<< bitcmp | Opérations binaires | bitor >> |