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 1 of 8.
Rashmi said:
6 years ago
5.375.
5 --> 101.
0.375 * 2 = 0.75,
0.75 * 2 = 1.5,
0.5 * 2 = 1.0.
Consider, only the decimal part from top to bottom ( 0 1 1).
THEREFORE 5.375=101.011.
5 --> 101.
0.375 * 2 = 0.75,
0.75 * 2 = 1.5,
0.5 * 2 = 1.0.
Consider, only the decimal part from top to bottom ( 0 1 1).
THEREFORE 5.375=101.011.
(22)
Rakshanda said:
7 years ago
Thanks for the answer @Surya.
(3)
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)
ASAbi4U said:
9 years ago
Thanks for explaining the concept, it will be easy now. Thank you all.
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.
Srujana said:
10 years ago
In decimal number, how to convert float or binary is any possibilities?
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)
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?
Edeheudim Enefiok Bassey said:
10 years ago
I was saying convert 5 3/8 to 101.011.
Siva said:
10 years ago
If a binary number is given. How to convert it to decimal number?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers