Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    Why 0h is not chosen for hex? 0x seems strange. Commented Sep 6, 2021 at 14:34
  • 2
    @DawnSong It's just a convention that is quite popular and now we have to live with it. Sometimes these things are arbitrary. You could try promoting your way, but it's hard to change the habits of so many people. I find the Octal one to be the most confusing visually. Commented Sep 8, 2021 at 5:46
  • Except that in the '70s and '80s, people learned that hex numbers were prefixed with $. I never saw "0x" until I got to IBM-compatibles. Commented Apr 16 at 16:48