Number Systems/Customs

From Coder Merlin
< Number Systems
Revision as of 09:45, 24 November 2021 by Dinas-emrys (talk | contribs) (Created page with "== Customs == * It is customary to separate groups of three '''decimal''' digits by commas. For example: 123,456<sub>10</sub>. * It is customary to separate groups to two ''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Customs[edit]

  • It is customary to separate groups of three decimal digits by commas. For example: 123,45610.
  • It is customary to separate groups to two hexadecimal digits by spaces and prefix a leading zero to what would otherwise be a single digit. For example: 01 2F16.
  • It is customary to separate groups of three octal digits by spaces and prefix leading zeros to pad to a three digit grouping. For example: 001 2378.
  • It is customary to separate groups of four binary digits by spaces and prefix leading zeroes to pad to a four digit grouping. For example: 0001 1011 11002.