Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.2 Online Documentation (MoTW) Revision 3

BITXNOR Function (DataBasic) (M618703+BITXNOR_F.HTM)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

BITXNOR Function

Returns the bitwise logical XNOR of two expressions.

Syntax

BITXNOR(expression1,expression2)

Syntax elements

expressionA valid DataBasic expression or any string, substring or value; may be expressed as a variable name, a value, or a string enclosed in quote marks that evaluates to a decimal number (of which only the integer part is used).

Operation

Each expression is converted to a hexadecimal number before the logical XNOR is performed. If one expression is shorter than the other the shorter one is first sign extended to be the same length. There is no limit to the length that can be accommodated.

Expression Bit string
Expression A 0011
Expression B 0101
Function Result
BITXNOR(A,B) 1001

If a non-numeric expression is supplied a B16 warning is produced:

[B16] Program ProgramName Line LineNumber 
Non-numeric data when numeric required; zero used.

See also

BITAND function, BITNAND function, BITNOR function, BITNOT function, BITOR function, BITXOR function.

RealityV15.2Revision 3Comment on this topic