The result of BINCMP(A) is calculated by first converting the value of A to an integer. The integer value of A is then treated as a binary number. Each bit of the result is set to 1 if the corresponding bit of A is 0 and is set to 0 if the corresponding bit of A is 1. Here is an example of how BINCMP works:
BINCMP(13)
The number 13 is considered a binary number, then the bitwise complement is performed: