Question: Write a user-defined MATLAB function that determines the binary floating point representation of a number written in decimal form. Name the function b=dectobinfloat(num),where the input

 Write a user-defined MATLAB function that determines the binary floating point

Write a user-defined MATLAB function that determines the binary floating point representation of a number written in decimal form. Name the function b=dectobinfloat(num),where the input argument is a real number, and the output argument is a two-element vector in which the first element is the mantissa and the second element is the value of the exponent. Use the function to determine the binary floating point representation of 55.6, 2143.75, and 0.00843. In this problem, use IEEE 754 double-precision binary floating-point format, which is commonly known simply as double. The IEEE 754 standard specifies a binary64 as having: - Sign: 1 bit (as discussed in class) - Exponent: 11 bits as a biased exponent - different from class - Mantissa: 53 bits (52 explicitly stored since we have 1 .mantissa) Note that the exponent field is an 11-bit unsigned integer from 0 to 2047, in the biased form: an exponent value of 1023 represents the actual zero. Exponents range from 1022 to +1023 because exponents of 1023 (all 0s) and +1024 (all 1s) are reserved for special numbers

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!