Konversi bilangan oktal ke biner
=OCT2BIN(number, [places])
| Parameter | Deskripsi |
|---|---|
number |
The octal number you want to convert. |
places |
[optional] The number of characters to use. If omitted, the function uses the minimum number of characters necessary. |
To convert the octal number 11 to binary, use the following formula:
=OCT2BIN(11) // returns 1001 (binary)
To convert the octal number 11 to binary, padded to 10 characters, use the following formula:
=OCT2BIN(11, 10) // returns 00000001001 (binary)
For example, to represent the decimal number -3 in octal, you would use the octal number 7777777775. This is because the most significant digit is the
=DEC2OCT(-3) // returns 7777777775
Then, when we convert the octal number to binary, we get the following result:
=OCT2BIN(7777777775) // returns 1111111101