Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

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
Check Mark
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.

Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education