Question: % Main function that handles user input and calls the respective functions % to compute the IEEE 7 5 4 3 2 - bit floating
Main function that handles user input and calls the respective functions
to compute the IEEE bit floating point representation.
Step : Get the floatingpoint number from the user.
num inputEnter a floatingpoint number: ;
Step : Get the sign bit if positive, if negative
Call the getsignbit function to determine the sign of the number.
signbit getsignbitnum;
Step : Convert the number into scientific notation mantissa and exponent
Call the getscientificnotation function to get the mantissa and exponent.
mantissa exponent getscientificnotationnum;
Step : Adjust the exponent for IEEE bias for bit
Call the getexponentbits function to convert the exponent into an bit
binary string after applying the bias.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
