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 8 of 8.
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.
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)
Rakshanda said:
7 years ago
Thanks for the answer @Surya.
(3)
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)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers