Purpose |
Return the least significant Byte, Word, Integer, Double-word, or Long-integer of an expression. Allows easy conversion between signed and unsigned expressions. The BITS functions has been superceded by the BITS function, although the BITS functions remain supported for a limited period. Existing code should be converted to the new syntax as soon as possible. | ||||||||||||||||||
Syntax |
bytevar = BITS?(expression) wordvar = BITS??(expression) dwordvar = BITS???(expression) intvar = BITS%(expression) longvar = BITS&(expression) | ||||||||||||||||||
Remarks |
The various BITS functions return the least-significant bits of expression, as shown in the following table:
| ||||||||||||||||||
See also |
BIT CALC statement, BIT function, BIT statement, BITS function |