bell notificationshomepageloginNewPostedit profile

Topic : Re: Alternatives better to the binary "0b..." format? In our documentation, we write binary numbers like this: 1010 But we write hexadecimal numbers like this: 0xABAB Now, according to the GCC compiler - selfpublishingguru.com

10% popularity

I like more the Intel method: 10010b and 1f4dh. On the other hand, you should follow the convention that your reader are supposed to use (e.h. if you are describing a C API, you should use C convention.

On generic documentation, probably I would be more verbose, Something like 10010 bin, maybe with a mouse-over bubble which show the value in decimal and hexadecimal.


Load Full (0)

Login to follow topic

More posts by @Jamie945

0 Comments

Sorted by latest first Latest Oldest Best

Back to top