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 7 of 8.
Ayantika said:
1 decade ago
5.375.
Here 5-> 101.
0.375*2 = 0.750 decimal part = 0.
(omit decimal part).
0.750*2 = 1.50 decimal part = 1.
(omit decimal part).
0.5*2 = 1.0 decimal part = 1.
So, the ans is 101.011 (011 from top to down).
Here 5-> 101.
0.375*2 = 0.750 decimal part = 0.
(omit decimal part).
0.750*2 = 1.50 decimal part = 1.
(omit decimal part).
0.5*2 = 1.0 decimal part = 1.
So, the ans is 101.011 (011 from top to down).
(1)
RAGHAVESH YADIKI said:
1 decade ago
If equivalent is to use in binary formation.
By language is,
5<--1011011.
1010101.
101.1011.
1100110.
1011111.
So by doing this we'll get right formation.
By language is,
5<--1011011.
1010101.
101.1011.
1100110.
1011111.
So by doing this we'll get right formation.
Muralikrishna said:
1 decade ago
101.011 converting to decimal.
= 1*(2^2)+0*(2^1)+1*(2^0).0*(2^-1)+1*(2^-2)+1*(2^-3).
= 4+0+1.0+(1/4)+(1/8).
= 5.375 Answer.
= 1*(2^2)+0*(2^1)+1*(2^0).0*(2^-1)+1*(2^-2)+1*(2^-3).
= 4+0+1.0+(1/4)+(1/8).
= 5.375 Answer.
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.
Saravana said:
1 decade ago
Why we multiply in 2?
(1)
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?
Krish said:
10 years ago
5.375.
5 --> 101.
0.375 * 2 = 0.75.
0.75 * 2 = 1.5.
0.5 * 2 = 1.0.
Sorry I can't understanding why you peoples are taking 0.5 instead of 1.5, we have to take 1.5?
5 --> 101.
0.375 * 2 = 0.75.
0.75 * 2 = 1.5.
0.5 * 2 = 1.0.
Sorry I can't understanding why you peoples are taking 0.5 instead of 1.5, we have to take 1.5?
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers