Floating Point
Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.
Floating point Representation
Floating point precision
Floating point presents a difficult challenge: how do we represent every possible decimal combination? Given a fixed number of bits, the answer is: we can't. As a result, there are some numbers that we would like to represent in floating point, but cannot represent them exactly.
For the following questions, you will be presented a value or expression in decimal, and asked if it can be represented in 32-bit floating point.
Logical Floating Point Operators: Comparison (==, !=, <, <=, > >=)
Logical operators take two numbers and produce a 0 (to indicate false) or 1 (to indicate true) output.
What is the result of the following logical comparisons assuming that the binary and hexadecimal values shown represent floating point numbers?