Home / lang / bset 
BSet
Syntax
Value = BSet ( Number AS Integer , Bit AS Integer ) AS Integer

Returns Number with its Bitth bit set. The bit number of the least significant bit is 0.

Example
PRINT BSet(13, 1)

15

Example
PRINT BSet(15, 1)

15


See also
Bits Manipulation Functions  Logical Operators