Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
Code Block
languagejavascript
char2a = String.fromEbcdicHex('0007');
char2b = pjs.bitNot(char2a);

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

...


RPG Equivalent

%BITNOT()