BSet

ページ名:BSet
  • BSet

Value = BSet ( Number , Bit )

Bitthビットを設定してNumberを返します。 最下位ビットのビット数は0です。
Numberのタイプは、Byte、Short、Integer、またはLongのいずれかです。
Bitの有効範囲は、Number引数の型によって異なります。

Type of Number

Range of Bit
Byte 0...7
Short 0...15
Integer 0...31
Long 0...63
戻り値のデータ型はNumberのデータ型です。

 

Errors

Message

Description
Type mismatch (6) Number引数のデータ型が無効です。
Bad argument (20) Bit引数が範囲外です。

Examples

Print 13, Bin(13, 16)
Print
BSet(13, 1), Bin(BSet(13, 1), 16)
13 0000000000001101
15 0000000000001111

 

Print 15, Bin(15, 16)
Print
BSet(15, 1), Bin(BSet(15, 1), 16)
15 0000000000001111
15 0000000000001111

See also

 

シェアボタン: このページをSNSに投稿するのに便利です。

コメント

返信元返信をやめる

※ 悪質なユーザーの書き込みは制限します。

最新を表示する

NG表示方式

NGID一覧