xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

NumAndX()

Performs bitwise AND operations for a list of integer values.

Syntax

NumAND( <nMaxBits>, ;
        <nInteger1|cHex1>, <nInteger2|cHex2> , ;
       [<...nIntegerN|cHexN>]) --> nInteger

Arguments

<nMaxBits>
This numeric value specifies the number of bits to use in the operation, beginning with the least significant bit (LSB). The value of <nMaxBits> must be in the range between 1 and 32.
<nInteger1>...<nIntegerN>
A comma separated list of numeric 32-bit integer values must be passed. A minimum of two integers is required.
<cHex1>...<cHexN>
Alternatively, the integers can be passed as hex-encoded character strings (see NumToHex()).

Return

The function performs a bitwise AND operation with the bits of all parameters, and returns the result as a numeric integer value.

Info

See also:& (bitwise AND), IsBit(), NumAnd(), NumNotX(), NumOrX(), NumXorX(), SetBit()
Category: CT:NumBits , Bitwise functions , Numbers and Bits , xHarbour extensions
Source:ct\bit3.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe