16 bit floating point format
Not what you're looking for?
Use the 16 bit floating point format to perform the following:
a) Convert ED80 from fpx to decimal.
b) Convert 1.745 * 10-3 from decimal to fpx.
c) Add two fpx numbers (7B80 + 7300).
d) Subtract two fpx numbers (7700 - 7CF0).
e) Multiply two fpx numbers (7500 * A70A).
All above numbers are fp (floating point) in hexadecimal, except for 1b, which is given in decimal.
Purchase this Solution
Solution Summary
Since nothing is mentioned about the 16 bit floating point format in the question, this solution considers 16 bit Half Precision floating point format as mentioned at http://en.wikipedia.org/wiki/Half_precision .
Solution Preview
Since nothing is mentioned about the 16 bit floating point format in the question, this solution considers 16 bit Half Precision floating point format as mentioned at http://en.wikipedia.org/wiki/Half_precision .
Bits layout in 16 bit (Half Precision) floating point format is as follows.
(1 Sign bit, 5 Exponent bits, 10 Fraction/Significand bits)
Exponent bias (b) = 15
In the response below, suffixes H and B are used to indicate hexadecimal and binary values respectively.
a) Convert ED80 from fpx to decimal
(ED80)H = (1110 1101 1000 0000)B
Sign bit (S) = 1
Exponent bits (e) = (11011)B = 27
Fraction bits (f) = (01 1000 0000)B
Equivalent decimal number = (-1)^S * 2^(e-b) * (1.f)B
= (-1)^1 * 2^(27-15) * (1.0110000000)B
= - 2^12 * (1.0110000000)B
= - (1011000000000)B
= - (4096+1024+512)
= - 5632 or -5632.00
b) Convert 1.745 * 10^(-3) from ...
Purchase this Solution
Free BrainMass Quizzes
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Javscript Basics
Quiz on basics of javascript programming language.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
C# variables and classes
This quiz contains questions about C# classes and variables.