Difference between revisions of "Number Systems/Customs"

From Coder Merlin
(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 ''...")
 
imported>Anton-krom
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
== 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 of three '''decimal''' digits by commas.  For example:  123,456<sub>10</sub>.
* 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 2F<sub>16</sub>.
* 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 2F<sub>16</sub>.
* 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 237<sub>8</sub>.
* 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 237<sub>8</sub>.
* 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 1100<sub>2</sub>.
* 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 1100<sub>2</sub>.
<noinclude>{{MerlinMultipageExperienceNavBar}}</noinclude>

Latest revision as of 17:17, 6 December 2021

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
  • 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.