UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

BITOR Syntax BITOR(num.expr1,num.expr2) Description The UniBasic BITOR function performs the bit-wise OR logical function on the arguments num.expr1 and num.expr2. With null value handling on, the result of any mathematical operation, function, or comparison involving the null value is the null value. Therefore, BITOR returns the null value when num.expr1 or num.expr2 is the null value. The following table shows the results of the BITOR function on various sets of input. Example In the following example, the program statement prints a 1: PRINT BITOR(0,1) 1-109 UniBasic Commands Reference num.expr1 num.expr2 Result 0 0 0 0 1 1 1 0 1 1 1 1 3 9 11 23 87 87 BITOR Function Operation Results

BITXOR Syntax BITXOR(num.expr1,num.expr2) Description The UniBasic BITXOR function performs the bit-wise XOR logical function on the arguments num.expr1 and num.expr2. With null value handling on, the result of any mathematical operation, function, or comparison involving the null value is the null value. Therefore, BITXOR returns the null value when num.expr1 or num.expr2 is the null value. The following table shows the results of the BITXOR function on various sets of input. Example In the following example, the program statement prints 1: PRINT BITXOR(0,1) num.expr1 num.expr2 Result 0 0 0 0 1 1 1 0 1 1 1 0 3 9 10 23 87 64 BITXOR Function Operation Results BITXOR 1-110

BITXOR<br />

Syntax<br />

BITXOR(num.expr1,num.expr2)<br />

Description<br />

The <strong>UniBasic</strong> BITXOR function performs the bit-wise XOR logical function on the<br />

arguments num.expr1 and num.expr2.<br />

With null value handling on, the result of any mathematical operation, function, or<br />

comparison involving the null value is the null value. Therefore, BITXOR returns the<br />

null value when num.expr1 or num.expr2 is the null value.<br />

The following table shows the results of the BITXOR function on various sets of<br />

input.<br />

Example<br />

In the following example, the program statement prints 1:<br />

PRINT BITXOR(0,1)<br />

num.expr1 num.expr2 Result<br />

0 0 0<br />

0 1 1<br />

1 0 1<br />

1 1 0<br />

3 9 10<br />

23 87 64<br />

BITXOR Function Operation Results<br />

BITXOR 1-110

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!