Page tree
Skip to end of metadata
Go to start of metadata

Returns the bit-wise inverse of the bits of the argument. That is, the result bit is 1 when the corresponding bit in the argument is 0, and 0 otherwise.

Parameter
  1. Value to negate
Example
Example 1: Comparing bytes
char2a = String.fromEbcdicHex('0007');
char2b = pjs.bitNot(char2a);

if (char2b.rtrim() === String.fromEbcdicHex('FFF8BFBF').rtrim()) {
  result = 'yes';
}

 

RPG Equivalent

%BITNOT()