Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Workaround for weird JS macro rendering code block as  

...

Counting in binary is similar to counting in decimal, except there are only 2 digits. Here's how to count from 0 to 32 in binary.

Number (decimal)Binary
00b000000
10b000001
20b000010
30b000011
40b000100
50b000101
60b000110
70b000111
80b001000
90b001001
100b001010
110b001011
120b001100
130b001101
140b001110
150b001111
160b010000
170b010001
180b010010
190b010011
200b010100
210b010101
220b010110
230b010111
240b011000
250b011001
260b011010
270b011011
280b011100
290b011101
300b011110
310b011111
320b10000

...

Code Block
themeConfluence
15100

can be represented as

Mathinline
body(15 6 \cdot 16^{1}) + (4 \cdot 16^{0})

or

cpp
Code Block
language
themeConfluence
0xF0x64

Example 3

The number

cpp
Code Block
language
themeConfluence
24140

can be represented as

Mathinline
body(1 8 \cdot 16^{1}) + (1 12 \cdot 16^{0})

or

cpp
Code Block
language
themeConfluence
0x180x8C

Example 4

The number

Code Block
themeConfluence
255

...

Counting in hex is similar to counting in decimal, except there are an additional 6 digits. Here's how to count from 0 to 32 in hex.

Number (decimal)Hex
00x00
10x01
20x02
30x03
40x04
50x05
60x06
70x07
80x08
90x09
100x0A
110x0B
120x0C
130x0D
140x0E
150x0F
160x10
170x11
180x12
190x13
200x14
210x15
220x16
230x17
240x18
250x19
260x1A
270x1B
280x1C
290x1D
300x1E
310x1F
320x20

...