Question: can you help me with assignment ? In this project, you will implement a function to convert a decimal floating-point number to and from) IEEE

can you help me with assignment ?

can you help me with assignment ? In this project, you will

implement a function to convert a decimal floating-point number to and from)

In this project, you will implement a function to convert a decimal floating-point number to and from) IEEE 754 floating point representation (32 bit only). The steps associated with converting a floating-point number to IEEE 754 is provided in the lecture slide. You will need to implement all the steps in a separate function. For this implementation you are required to use Python. normalize_binary(bin): Takes the binary for the floating-point number and returns the mantissa/fraction and exponent. >>> def normalize_binary (n): Your Code ** >>> normalize_binary (1010101.001) Mantissa: 010101001 exponent: 6 calculate_biased_exponent(expo): Takes the exponent from normalized representation and returns the binary of the biased exponenet. >>> def calculate_exponent_biased (n) : ** Your Code ** >>> calculate_exponent_biased (6) The exponent is : 6 and biased exponent is : 10000101

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!