Rexx - bitcomp



The method is used to compare 2 bit strings, bit by bit.

Syntax

bitcomp(binstring1, binstring2) 

Parameters

  • binstring1, binstring2 − The binary string value that needs to be compared.

Return Value

The returned value is the bit number of the first bit which is different in both strings.

Example

/* Main program */ 
options arexx_bifs 
say bitcomp('7F'x,'FF'x) 

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

Output

7
rexx_regina.htm
Advertisements