Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>numnot()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NUMNOT()
 Performs a 16-bit "NOT" of a number
------------------------------------------------------------------------------
 Syntax

     NUMNOT(<nWORD|cHexWORD>) --> nNegatedWORD

 Argument

     <nWORD|cHexWORD>  Designates either a decimal number or hexadecimal
     digit string.

 Returns

     NUMNOT() returns the negated binary value of the <.nWORD|cHexWORD>
     parameter.  The 0 bits become 1, and 1 bits become 0.

 Description

     This function is especially useful with file attributes, error codes,
     and when you manipulate bit fields.

 Notes

     .  The function returns the 1's complement of a number.

     .  An invalid parameter returns a result of -1.

 Example

     Show the 1's complement of a number:

     The number:         00000101  00000000
     The complement:     11111010  11111111
     ? NUMNOT(5)         // Result: 65530


See Also: NUMAND() NUMOR() NUMXOR() SETBIT() ISBIT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson