GetIntBit('Expression','BitNo')

Description

This function returns the Boolean value of the 'BitNo' bit of 'Expression' as its result after rounding the 'Expression' to the nearest integer value. The rounding limit is in each case the next 0.5 increment. (2.49 → 2; 2.50 → 3). Valid bit number sequence: 0 (LSB) to 31 (MSB)

Example

Representation of time in Boolean values

Solution

The figure below shows the GetIntBit function of the first six bits of the time function, T().