Mengonversi bilangan oktal menjadi bilangan heksadesimal yang setara
=OCT2HEX(number, [places])
| Parameter | Deskripsi |
|---|---|
number |
The octal number you want to convert. |
places |
[optional] The number of characters to use in the result. If omitted, uses the minimum number of characters necessary. |
To convert the octal number 12 to hexadecimal, use the following formula:
=OCT2HEX(12) // returns A
For example, to convert the octal number 12 to hexadecimal and pad the result to 3 characters, use:
=OCT2HEX(12, 3) // returns 00A
This means the octal numbers from 4000000000 to 7777777777 are mapped to different hexadecimal numbers, because Excel uses two's complement notation t
=OCT2HEX(0377777777, 10) // returns 0003FFFFFF
=OCT2HEX(0400000000, 10) // returns 0004000000
=OCT2HEX(3777777777, 10) // returns 001FFFFFFF
=OCT2HEX(4000000000, 10) // returns FFE0000000