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 3 of 8.
Anil said:
1 decade ago
101.011->
101=5
For decimal part:
.011=.[0*{1/(2^1)} 2^1=2
+1*{1/(2^2)} 2^2=4
+1*{1/(2^3)}] 2^3=8
= .[0+1*0.25+1*0.125]
= .[0+0.25+0.125]
= 0.375
101=5
For decimal part:
.011=.[0*{1/(2^1)} 2^1=2
+1*{1/(2^2)} 2^2=4
+1*{1/(2^3)}] 2^3=8
= .[0+1*0.25+1*0.125]
= .[0+0.25+0.125]
= 0.375
Yograj said:
1 decade ago
8421 8421 8421
0000 0000 0000
Simple logic to remember this:
Given 101.011
1st digit missing consider 421 i.e 101 (1-has value .0-nothing)
101.011
401.021
i.e
5.3(nearest answer).
0000 0000 0000
Simple logic to remember this:
Given 101.011
1st digit missing consider 421 i.e 101 (1-has value .0-nothing)
101.011
401.021
i.e
5.3(nearest answer).
Sasikumar 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
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)
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.
Poonamchandra said:
1 decade ago
5.375.
5 --> 101.
0.375 * 2 = 0.75 = 0 + .75----->0.
0.75 * 2 = 1.5 = 1 + .5 ----->1.
0.5 * 2 = 1.0 = 1 + .0 ----->1.
5.375----->101.011.
5 --> 101.
0.375 * 2 = 0.75 = 0 + .75----->0.
0.75 * 2 = 1.5 = 1 + .5 ----->1.
0.5 * 2 = 1.0 = 1 + .0 ----->1.
5.375----->101.011.
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)
Zeeshan 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.
Vishal said:
1 decade 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
Surya said:
2 decades 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
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers