Reference.Bit History

Hide minor edits - Show changes to output

June 05, 2009, at 05:26 PM by David A. Mellis -
Deleted lines 6-7:
bit() is currently limited to 16 bit (int, word) datatypes, and bit(15) returns -32768, apparently reflecting a signed data type.
May 15, 2009, at 01:50 PM by Paul Badger -
Changed lines 5-6 from:
Computes the value of the specified bit (bit 0 is 1, bit 1 is 2, bit 2 is 4, etc.).
to:
Computes the value of the specified bit (bit 0 is 1, bit 1 is 2, bit 2 is 4, etc.).

bit() is currently limited to 16 bit (int, word) datatypes, and bit(15) returns -32768, apparently reflecting a signed data type.
November 02, 2008, at 11:06 AM by David A. Mellis -
Added lines 1-24:
!!bit()

!!!!Description

Computes the value of the specified bit (bit 0 is 1, bit 1 is 2, bit 2 is 4, etc.).

!!!!Syntax

bit(n)

!!!!Parameters

n: the bit whose value to compute

!!!!Returns

the value of the bit

!!!!See also

* [[bitRead]]()
* [[bitWrite]]()
* [[bitSet]]()
* [[bitClear]]()

Share