11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BITNOT<br />

Syntax<br />

BITNOT(num.expr)<br />

Description<br />

The <strong>UniBasic</strong> BITNOT function performs the bit-wise NOT logical function on the<br />

argument num.expr.<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, BITNOT returns the<br />

null value when num.expr is the null value.<br />

The following table shows the results of the BITNOT function on the valid input: 0<br />

and 1.<br />

Example<br />

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

PRINT BITNOT(0)<br />

num.expr Results<br />

0 1<br />

1 0<br />

BITNOT Function Operation Results<br />

BITNOT 1-108

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

Saved successfully!

Ooh no, something went wrong!