From WikiChip
$isbit Identifier - mIRC
< mirc‎ | identifiers
Revision as of 12:01, 30 October 2017 by Ouims (talk | contribs) (Created page with "{{mirc title|$isbit Identifier}}'''$isbit''' returns 1 if the Nth bit is turned on == Synopsis == <pre>$isbit(A,N)</pre> == Parameters == * '''A''' - The number, in base10/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$isbit returns 1 if the Nth bit is turned on


Synopsis

$isbit(A,N)

Parameters

  • A - The number, in base10/decimal
  • N - The Nth bit you want to check

Properties

None

Example

//var %a 5 | echo -a $base(%a,10,2) $isbit(%a,2)

Compatibility

Added: mIRC v5.61
Added on: 23 Sep 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

$and $or $xor $not $biton $bitoff