Question

In: Computer Science

Explain the use of the mantissa and exponent for its representation on a computer. Why is...

Explain the use of the mantissa and exponent for its representation on a computer. Why is it necessary?

Explain the terms “normalization”, “hidden bit” and “bias” in the context of floating point number representation.

Solutions

Expert Solution

In order to represent and store very large or small numbers in their actual form in a computer, we would need more more bytes of memory. However, if a number is represented using mantissa and exponent, we can reduce the number of bytes required to store the same number. Hence, it is necessary to store a number using mantissa and exponent.

Normalization means putting in scientific notation. Since a mantissa can never start with 0 and never be less than the base, this means that we can normalize the mantissa to start with 1 and put all other digits after the decimal point.

Since the normalized mantissa always starts with 1, we don't meed to store it. The first bit is called the hidden bit because it always exits, but we never store it.

Biasing the technique which is done because exponents have to be signed values in order to be able to represent both tiny and huge values, but two's complement, the usual representation for signed values, would make comparison harder.


Related Solutions

Represent the decimal number +105.25 as a sign (S), mantissa (M), and exponent (E)
Represent the decimal number +105.25 as a sign (S), mantissa (M), and exponent (E)
Recall that a float is stored in the following format: ±sign 1.mantissa • 2^exponent?127 where sign...
Recall that a float is stored in the following format: ±sign 1.mantissa • 2^exponent?127 where sign is 1 bit, exponent is 8 bits, and mantissa is 23 bits. Write a C function that accepts an int parameter and returns a float represented by the bits in the int. The 32-bit integer is organized as 1-bit sign, 8-bit exponent, 23-bit mantissa. For example, 0x3F800000 represents 1.0 because the sign bit is 0, the exponent is 127, and the mantissa is all...
Find the 3-bit mantissa floating point representation of the following numbers, both by chopping and rounding,...
Find the 3-bit mantissa floating point representation of the following numbers, both by chopping and rounding, and then calculate the associated respective absolute error and relative error: (a) 11/16 (b) 2.75
7-bit float to fraction Consider a 7-bit float representation with 3 exponent bits. that k is...
7-bit float to fraction Consider a 7-bit float representation with 3 exponent bits. that k is the number of exponent bits, and the bias is computed as 2k-1-1. For each problem, convert the given float value (provided as a series of bits) into the equivalent base 10 fraction. Simplify each fraction as much as possible. If there is a whole number part and a fractional part, put a space between them. Here are some example values in the correct format:...
Explain why philosophy of science postulates that a model “is a simplified representation of a theory”
Explain why philosophy of science postulates that a model “is a simplified representation of a theory”
what is information system is and explain each of its components. Make a graphical representation
what is information system is and explain each of its components. Make a graphical representation
Share and describe an image that depicts a visual representation of data. Briefly explain why you...
Share and describe an image that depicts a visual representation of data. Briefly explain why you think this representation is particularly interesting or effective. You can create your own representation or find an example. Please, be sure to cite the source in your description if the image is not your own.
Share and describe an image that depicts a visual representation of data. Briefly explain why you...
Share and describe an image that depicts a visual representation of data. Briefly explain why you think this representation is particularly interesting or effective. You can create your own representation or find an example. Please, be sure to cite the source in your description if the image is not your own.
Share and describe an image that depicts a visual representation of data. Briefly explain why you...
Share and describe an image that depicts a visual representation of data. Briefly explain why you think this representation is particularly interesting or effective. You can create your own representation or find an example. If the image is not your own, be sure to cite the source in your description. eg. scatter plot etc
explain why a computer needs to use memory (registers, stacks, heaps) when executing assembly language instructions...
explain why a computer needs to use memory (registers, stacks, heaps) when executing assembly language instructions using the computer's architecture?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT