Integer組み込みファンクション - BitAndメソッド
ビット演算AND
Integer組み込みファンクション (PRIM_LIBI.IIntegerIntrinsics) のメンバ
パラメータ
名前 | タイプ | データタイプ | 記述 |
|---|---|---|---|
Result | *Result (任意) | 整数 | 結果のビット |
With | *Input | 整数 | 比較値 |
詳細
BitAnd は、論理ビット単位ANDを実行します。
LANSA では、バイナリー・ビット・マスクの使用をサポートする BitXXX 組み込みファンクションを利用できます。
例
If (#Integer.BitAnd( 4 ) = 4)
* Bit 4 is on
Else
* Bit 4 is Off
Endif