xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

NumNotX()

Performs a bitwise NOT operation with a numeric integer value.

Syntax

NumNOT( <nMaxBits>, ;
        <nInteger>|<cHex> ) --> nNOTed_Integer

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.
<nInteger>
A numeric integer value is passed as second parameter.
<cHex>
Alternatively, the integer can be passed as a hex-encoded character string (see NumToHex()).

Return

The function returns a numeric integer value with <nMaxBits> bits inverted.

Info

See also:IsBit(), NumAndX(), NumNot(), 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