Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6668571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:03:21+00:00 2026-05-26T03:03:21+00:00

I am trying to convert FFAD (hex) to a decimal value and then do

  • 0

I am trying to convert FFAD (hex) to a decimal value and then do one and two’s complement on it. FFAD is represented as a 16 bit integer.
When I convert FFAD to base 2 I get 1111111110101101.

My problem is how I know if it is a negative number or not?

I have the binary, now to do ones complement normally I would change the last bit from a 0 to a 1 and then flip all the bits, but as a 16 bit integer I don’t have any more available bits. Since the 16th bit is a 1 does that mean it is a negative number? How would I do the complement of that? I am just all around confused with this problem and any pointers would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:03:21+00:00Added an answer on May 26, 2026 at 3:03 am

    Its negative because it is left padded with ones. Left padding with zeros would indicate a positive number. For example, here are the decimal values for three bit numbers:

    • 011 = 3
    • 010 = 2
    • 001 = 1
    • 000 = 0
    • 111 = -1
    • 110 = -2
    • 101 = -3
    • 100 = -4

    Notice, numbers that are left padded with ones are negative and numbers that are left padded with zeros are positive.

    Standard procedure for 2’s compliment is to negate your bits, and then add 1.

    1111111110101101 becomes 0000000001010010. Then you add 1 to get 0000000001010011.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert old QuickTime framework code to the 64-bit Cocoa-based QTKit on
Trying to convert the following two eregi statements to their preg counterparts: eregi(/F \(([^)]*)\),$In,$DataOut);
I'trying to convert a float to an int value in php: var_dump((int)(39.3 * 100.0));
Trying to convert a two dimensional array to a two dimensional JSON.Net array. Is
I'm trying convert xml from one format to other using the XslCompiledTransform in c#.
Trying to convert a date & time value in the format of 07/19/2011 00:00
I'm trying to convert a string to a double value but it's not returning
Trying to convert a bytestring to a hex ascii string display wordtoascii :: Int
Am trying to convert my string value(the value is millisecond value) from seconds. Here
I am trying to convert a file path which just have one slash to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.