Previous Topic: TRACE Function--Write Trace Entry to Console Log

Next Topic: YEAR Function--Return the Year Component of a Numeric Date

XORBITS Function--Perform a Bitwise XOR Operation

The XORBITS function performs a bitwise XOR operation on its two arguments.

Syntax

The XORBITS function has the following format:

XORBITS(num_1,num_2)

Parameters

The XORBITS function accepts the following parameters:

num_1 (number)

num_2 (number)

Return Value

The XORBITS function returns a number.

Example

Return_value=XORBITS(7, 2)
Return_value=5

Return_value=XORBITS(7, 15)
Return_value=8

More information:

ANDBITS Function--Perform a Bitwise AND Operation

NOTBITS Function--Perform a Bitwise NOT

ORBITS Function--Perform a Bitwise OR Operation


Copyright © 2010 CA. All rights reserved. Email CA about this topic