From Scriptwiki
Jump to: navigation, search

Biton returns the given number with the Nth bit turned on.

$biton(decimal number, N)
  • Decimal number is the number to perform the operation on given in decimal form (Base 10)
  • N is the bit to turn on.



The binary value of 5 is taken


And the second bit is turned on(second from the right)

Returns: 7