~ (bitwise NOT)

AutoCad AutoLISP Functions

 
~ (bitwise NOT)
 
 
 

Returns the bitwise NOT (1's complement) of the argument

(~ int)

Arguments

int

An integer.

Return Values

The bitwise NOT (1's complement) of the argument.

Examples

(~ 3)                     returns  -4 
(~ 100)                   returns  -101 
(~ -4)                    returns   3