Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>numnot()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NUMNOT()

Syntax:     NUMNOT(<expH>)

Arguments:  <expH> is either a decimal number or a hexadecimal string
            of digits.

Returns:    A numeric value.
            Supplies the binary complement value  of the argument
            <expH>, so 0 becomes 1 and 1 becomes 0.

Usage:      This function is extremely useful, especially with file attributes
            and error codes, or when generally manipulating bit values.
            All the bits in <expH> will be reversed with NUMNOT().

Notes:      The function will return the one's complement of a number.
            An invalid argument will lead to the result of -1.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * The one's complement of a number.
            ? NUMNOT(5)                 && Result: 250

            * The number:               00000101
            * The complement:           11111010



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

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