Function EN Version 2.10

@IsBitSet

Float Logical Misc NUMBER

Syntax

@IsBitSet(FN1;FN2);

Description

Checks whether the bit at position FN FN2 in FN FN1 is set or not.
If it is set, TRUE is returned; otherwise FALSE.
The position is counted from the back and starts with 1.

Examples: @IsBitSet(FN1;FN2);

X:=1;
Ret:=@IsBitSet(X;1);

Returns TRUE;

X:=2;
Ret:=@IsBitSet(X;1);

Returns FALSE;

X:=4;
Ret:=@IsBitSet(X;3);

Returns TRUE;

Note : This text was machine-translated and may contain inaccuracies.