- #1

- 292

- 0

- Thread starter Avichal
- Start date

- #1

- 292

- 0

- #2

berkeman

Mentor

- 58,812

- 8,942

http://en.wikipedia.org/wiki/Binary-coded_decimal

When you get to 0x09, what is the binary representation of it? And to get to 0x10, what do you have to add to 0x09?

- #3

- 292

- 0

In BCD representation for 9 is the same but for 10 its 0001 0000 instead of 1010.

We need to add 6 for that - I get that but how to prove it?

- #4

berkeman

Mentor

- 58,812

- 8,942

Standard notation. 0x = hex, 0b = binary...

In BCD representation for 9 is the same but for 10 its 0001 0000 instead of 1010.

We need to add 6 for that - I get that but how to prove it?

- #5

- 1

- 0

((2^n)-1)-9= the amount needed to carry into the next group of bits

where n is the number of bits used.

- Replies
- 11

- Views
- 14K

- Last Post

- Replies
- 12

- Views
- 6K

- Last Post

- Replies
- 13

- Views
- 3K

- Last Post

- Replies
- 21

- Views
- 4K

- Last Post

- Replies
- 1

- Views
- 16K

- Last Post

- Replies
- 3

- Views
- 723

- Last Post

- Replies
- 2

- Views
- 4K

- Last Post

- Replies
- 2

- Views
- 2K

- Last Post

- Replies
- 3

- Views
- 5K

- Last Post

- Replies
- 3

- Views
- 7K