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 4 of 8.
Sudhanshu shekhar said:
1 decade ago
If base of 5.375 is 10 then answer is 101.011 others answer is D.
Nitish saurabh said:
1 decade ago
5.375
5 --> 101.
0.375 * 2 = 0.75.
0.75 * 2 = 1.5.
0.5 * 2 = 1.0.
Therefore it will be,
5.375 -> 101.011.
5 --> 101.
0.375 * 2 = 0.75.
0.75 * 2 = 1.5.
0.5 * 2 = 1.0.
Therefore it will be,
5.375 -> 101.011.
Siva said:
10 years ago
If a binary number is given. How to convert it to decimal number?
Edeheudim Enefiok Bassey said:
10 years ago
I was saying convert 5 3/8 to 101.011.
Boss said:
10 years ago
It is better to go in 2-1 and take digital logic design book and read that then you know how to convert binary to decimal?
Srujana said:
10 years ago
In decimal number, how to convert float or binary is any possibilities?
Somraj....... said:
9 years ago
@Krish, you have to consider part after decimal point only.
Because if you consider 1.5 next answer will be 3.0 which is not possible.
Because if you consider 1.5 next answer will be 3.0 which is not possible.
ASAbi4U said:
9 years ago
Thanks for explaining the concept, it will be easy now. Thank you all.
Narayan semwal said:
1 decade ago
5.375
1--001
2--010
3--011
4--100
5-- 101
0.375 * 2 = 0.750
0.75 * 2 = 1.500
0.5 * 2 = 1.000
Consider,only the decimal part from top to bottom ( 0 1 1)
THEREFORE, 5.375=101.011
1--001
2--010
3--011
4--100
5-- 101
0.375 * 2 = 0.750
0.75 * 2 = 1.500
0.5 * 2 = 1.000
Consider,only the decimal part from top to bottom ( 0 1 1)
THEREFORE, 5.375=101.011
Barun singh said:
1 decade ago
@surya.
Your explanation is nice one.
Your explanation is nice one.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers