C Programming - Floating Point Issues - Discussion
Discussion Forum : Floating Point Issues - General Questions (Q.No. 7)
7.
The binary equivalent of 5.375 is
Discussion:
76 comments Page 5 of 8.
Sibinxavier said:
1 decade ago
After "." it become
111= 1/2,1/4,1/8
375
011 = 0*(1/2)+1(1/4)+1(1/8)
=.25+.125 =.375
5.375 =101.011
111= 1/2,1/4,1/8
375
011 = 0*(1/2)+1(1/4)+1(1/8)
=.25+.125 =.375
5.375 =101.011
Mrudula said:
1 decade ago
Why should we write only the decimal part from botom to top, it seems some more explanation is need to be there.
Abirami said:
2 decades ago
I didn't understand the question. Please give me the correct explanation and how the ans comes.
Ishu said:
9 years ago
5.375.
5 = 1(2^2) + 0(2^1) + 1(2^0).
0.375 = (0/(2^1)) + (1/(2^2)) + (1/(2^3)).
5 = 1(2^2) + 0(2^1) + 1(2^0).
0.375 = (0/(2^1)) + (1/(2^2)) + (1/(2^3)).
(2)
Srujana said:
10 years ago
In decimal number, how to convert float or binary is any possibilities?
ASAbi4U said:
9 years ago
Thanks for explaining the concept, it will be easy now. Thank you all.
Siva said:
10 years ago
If a binary number is given. How to convert it to decimal number?
Sudhanshu shekhar said:
1 decade ago
If base of 5.375 is 10 then answer is 101.011 others answer is D.
Kittu said:
1 decade ago
Because they asked binary equivalent thats why we multiply by 2 .
Bharath said:
1 decade ago
I did'tunderstand this can please provide a better solution.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers