BITOR Function

Office 2013 and later

Last modified: March 09, 2015

Applies to: Office 2013 | Visio 2013

Returns a 16-bit binary number in which each bit is set to 1 if the corresponding bit in either binary number1 or binary number2 is 1. The bit is set to 0 only if the corresponding bit is 0 in both binary number1 and binary number2.

BITOR(binary number1,binary number2)

Parameters

Name

Required/Optional

Data Type

Description

binary number1

Required

Numeric

The first 16-bit binary number.

binary number2

Required

Numeric

The second 16-bit binary number.

Return Value

16-bit Binary

BITOR(12,6)

Returns 14. The 12 = 0...01100. The 6 = 0...00110. Therefore, BITOR(12,6) = 0...01110.

Show: