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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here