Previous Topic: ALL Function--All Bits Set

Next Topic: ANY Function--Any Bits Set

ANDBITS Function--Perform a Bitwise AND Operation

The ANDBITS function performs a bitwise AND operation on two numbers.

Syntax

The ANDBITS function has the following format:

ANDBITS(number1,number2)

Parameters

The ANDBITS function accepts the following parameters:

number1 (number)

number2 (number)

Return Value

The ANDBITS function returns a number.

Example

Return_value=ANDBITS(7,2)
Return_value=2

Return_value=ANDBITS(7,15)
Return_value=7

More information:

NOTBITS Function--Perform a Bitwise NOT

ORBITS Function--Perform a Bitwise OR Operation

XORBITS Function--Perform a Bitwise XOR Operation


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