1.Define a Python function normalize that expects one argument, a bit string of the form returned by unsignedFloatToBinary .The normalize function returns the equivalent bit string in normalized...


1.Define a Python functionnormalizethat expects one argument, a bit string of the form returned byunsignedFloatToBinary.Thenormalizefunction returns the equivalent bit string in normalized form.Examples of returned values are the string “1.101E-3” from the bit string “0.001101” and the string “1.01100E4” from the bit string “10110.0”.Note the embedded exponent, whose value is represented in base 10 digits.



2.Define a Python functiondecimalToSinglePrecisionthat expects one argument, asignedfloating-point number (a Pythonfloat).This function returns a string of binary digits representing that number in IEEE single precision format.You should make good use of the other functions in your library for this one.

Jan 25, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here