Converts a decimal number to an octal number.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
DEC2OCT(number, [places])The DEC2OCT function converts a decimal integer to its octal equivalent. If the number is negative, the function returns a 10-character two's complement octal number.
=DEC2OCT(56)ผลลัพธ์: 70
Converts the decimal number 56 to octal.
=DEC2OCT(10, 4)ผลลัพธ์: 0012
Converts 10 to octal with a fixed length of 4 characters.
The number must be between -536,870,912 and 536,870,911.