−30.75 16.375

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Express the following base 10 numbers in two’s complement binary fixed-point numbers with eight integer bits and eight fraction bits. Express your answer in hexadecimal. (Note: You should show all steps)

  1. −30.75
  2. 16.375
Expert Solution
Step 1

2's complement:- 

2's complement is used for representing the negative binary numbers into their positive equivalents into the binary number system. It is used in binary arithmetic and makes it easy to understand and solve. It can be signed or unsigned, in signed the most significant bit of the number represents the sign of the number, 0 for positive and 1 for negative.

For example:- 

-4 in 8-bit  binary is 00000100 and for 2's complement, convert it into 1's complement and add 1. 

1's complement : 11111011

2's complement : 11111011 + 1 = 11111100

Note : The 2's complement of the positive number is same as it's binary conversion and negative number's 2's complement is calculated by taking 1's complement and adding 1 in it.

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Types of Protocols
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education