- #1

- 293

- 0

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter Avichal
- Start date

- #1

- 293

- 0

- #2

berkeman

Mentor

- 61,255

- 11,761

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

- 293

- 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

- 61,255

- 11,761

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?

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

- #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.

Share: