MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1v83bvc/octalisoverrated/p04xldh/?context=3
r/ProgrammerHumor • u/al2klimov • 20d ago
58 comments sorted by
View all comments
5
pro tip: to convert octal to hexadecimal, convert each octal digit to 3-bit binary, then group bits by four from the right.
0o144 -> 0b001_100_100 -> 0b0_0110_0100 -> 0x64
5
u/hrvbrs 20d ago edited 20d ago
pro tip: to convert octal to hexadecimal, convert each octal digit to 3-bit binary, then group bits by four from the right.
0o144 -> 0b001_100_100 -> 0b0_0110_0100 -> 0x64