Fall 2015 CSCI 255 Homework 7 solution

Problem 1

Problem 2

Problem 3

Express the following base 10 numbers in 16-bit fixed-point twos-complement representation with 8 integer bits and 8 fraction bits. Some of the numbers can not be expressed exactly, so give the nearest fixed-point representaion.

Problem 4

Express the following 16-bit fixed-point twos-complement numbers with 8 integer bits and 8 fraction bits as base 10 decimal numbers.

  • 0000100011001100 in fixed-point is 00001000.11001100 or 8 + 204/256 or 8.796875
  • 1100100011001100 in fixed-point is 11001000.11001100 is -56 + 204/256 or -55.203125
  • Problem 5

    What is the 32-bit IEEE 754 representation for 3.5?

    Problem 6

    If 0x42510000 is the 32-bit IEEE 754 representation of a floating point number, what is the floating point number?