GetBit

Category: Arithmetics
Since engine version: 1.0 OC

Description

Returns the value of the bit_number'th bit.

Syntax

bool GetBit(int old_value, int bit_number);

Parameters

old_value:
Old value of the bit masc
bit_number:
The requested bit.
See also: SetBit, ToggleBit
Newton, 2009-07