$bitoff

From Scriptwiki
Revision as of 17:07, 10 May 2008 by Aca20031 (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Bitoff returns the given number with the Nth bit turned off.

$bitoff(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 off.

Example

$bitoff(5,3)

The binary value of 5 is taken

00000101

And the third bit is turned off (third from the right)

00000001
Returns: 1