![]() |
![]() |
![]() |
![]() |
![]() |
The keyword not4b belongs to the family of the bitwise operators operating on bitstrings, hexstrings or octetstrings of equal length. It performs the following operation: for each bit in the operand, bit 1 is set to 0 and bit 0 is set to 1. In other words, the unary operator not4b inverts the individual bit values of its operand.
Related keywords:
not4b |
Example 1:
const bitstring c_teplo := '1001'B;
var bitstring v_praze := not4b c_teplo;
The variable v_praze will initially contain the value '0110'B.
Example 2:
const hexstring c_uttal := '1A5'H ;
var hexstring v_omkom := not4b c_uttal;
The variable v_omkom will initially contain the value 'E5A'H.
Example 3:
const octstring c_tirer := '01A5'O ;
var octstring v_virer := not4b c_tirer;
The variable v_virer will initially contain the value 'FE5A'O.
BNF definition of not4b