Converts an octal number to binary.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
OCT2BIN(number, [places])The OCT2BIN function converts an octal number into its binary representation. If the optional places argument is provided, the function will pad the result with leading zeros to match the specified length.
=OCT2BIN(12)ผลลัพธ์: 1010
Converts the octal number 12 to the binary 1010.
=OCT2BIN(5, 4)ผลลัพธ์: 0101
Converts 5 to binary and pads it to 4 digits.
The octal number cannot exceed 10 characters in length.
The function returns a #NUM! error.