C programming

Cancelled Posted Nov 14, 2014 Paid on delivery
Cancelled

To do this we will pack 2 decimal digits into a single byte. You can use integer arithmetic (division and

modulus) to extract the individual decimal digits, use a left shift operation to "move" the current digits to

the left, then add the next digit into the result.

You are actually making use of Binary Coded Decimal (BCD). BCD uses 4 bits to encode the 10

decimal digits. If you look at hexadecimal values you will notice that we can use 4 bits to represent a

number between 0 and 9. Therefore you can convert any number into a sequence of hex digits that read

just like the original number:

3594 would be converted to 0x3594.

C Programming

Project ID: #6732352

About the project

1 proposal Remote project Active Nov 14, 2014

1 freelancer is bidding on average $5 for this job

ajayac

A proposal has not yet been provided

$5 USD / hour
(0 Reviews)
0.0
MubashirAbbas71

A proposal has not yet been provided

$8 USD / hour
(0 Reviews)
0.0