CT_NUMNOT

 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()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.