Rexx - bittst


Advertisements

This method is used to indicate the state of the specified bit in the bit string.

Syntax

bitcomp(binstring, bit) 

Parameters

  • binstring − The binary string value.

  • bit − The bit value that needs to be tested.

Return Value

The Boolean return indicates the state of the specified bit in the argument string.

Example

/* Main program */ 
options arexx_bifs 
say bittst('0313'x,4) 

When we run above program we will get the following result.

Output

1
rexx_regina.htm
Advertisements