Find Jobs
Hire Freelancers

C programming

$2-8 USD / hour

Cancelled
Posted over 9 years ago

$2-8 USD / hour

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.
Project ID: 6732352

About the project

1 proposal
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $5 USD/hour for this job
User Avatar
A proposal has not yet been provided
$5 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$8 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
winnipeg, Canada
5.0
3
Payment method verified
Member since May 23, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.