Returns a bitwise OR of two numbers.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
BITOR(number1, number2)The BITOR function compares the binary representations of two integers and returns a result where each bit is 1 if either of the corresponding bits in the input numbers is 1. If both bits are 0, the result bit is 0.
=BITOR(5, 3)ผลลัพธ์: 7
5 (binary 101) OR 3 (binary 011) equals 7 (binary 111).
Excel will truncate the numbers to integers before performing the calculation.