Find Jobs
Hire Freelancers

Java Unsigned Byte Shifted 2 Converted to Int

max $5 USD

In Progress
Posted over 12 years ago

max $5 USD

Paid on delivery
I need the java code to convert an unsigned byte shifted by 2 to an integer. For example, I have the byte value A0. This converts to the bit pattern: 1010 0000 (or hex -96). This has to be shifted by two to be converted to the bit pattern: 0010 1000 (or hex 28). Then, I need the integer value of that. Merely doing a >> will not work as it is a negative value. >>> gives very weird results.
Project ID: 3764915

About the project

1 proposal
Remote project
Active 12 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
Awarded to:
User Avatar
See private message.
$2 USD in 1 day
5.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
Carmel Valley, United States
5.0
302
Payment method verified
Member since Jul 1, 2002

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.