Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I want you to modify this code to give me output as just the mantissa part. remaining all are good. just modify the code in
I want you to modify this code to give me output as
just the mantissa part.
remaining all are good. just modify the code in c language
// to converts mantissa into 24 bit binary string stored in mantissastr char mantissastr[25]; //it stores 24 bits binary and a nu11 character for termination for (int i=0;i=1.0?1 ' : ' 0 '; //after the loop is mantissa is 1 then binary is stored as 1 or else in the mantisastr string if ( mantissa >=1.0){ mantissa =1.0 / after setting the binary digit in mantissastr the code subtracts 1.0 from mantissa if it is greater than or equal to 1.0 so, it removes power of 2 that was included in binary / \}3 mantissastr [24]=\0;// it adds nu11 value to terminate the string Input a real number: 1 Inpu The IEEE 754 Single Precision is Sign: 1 Mantissa (24 bit): 100000000000000000000000 Exponent: 0111111Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started