Category: Arithmetics
Since engine version: 1.0 OC
ToggleBit
Description
Returns the new bit masc with the bit at the indicated position flipped
Syntax
int ToggleBit(int old_value, int bit_number);
Parameters
- old_value:
- Old value of the bit masc
- bit_number:
- The bit to flip