C Programming - Floating Point Issues - Discussion

Discussion Forum : Floating Point Issues - General Questions (Q.No. 7)
7.
The binary equivalent of 5.375 is
101.101110111
101.011
101011
None of above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
76 comments Page 2 of 8.

Sasi said:   1 decade ago
The binary code for 5 is 101.

For decimal values(.375) the binary values can be found on the basis of following:

Decimal*base of binary.
0.375*2 = 0.750 pick the number before point hence 0.
0.750*2 = 1.500 hence 1.
0.500*2 = 1.000 hence 1.

Write from the top to bottom like 011 and not as 110.
(5.375)-->101.011.

Meera said:   1 decade ago
5.375
5/2 remainder is 1
2/2 remainder is 0
1/2 remainder is 1
bottom up---> 101
.375 * 2= 0.75 number without decimal point is 0
.75 * 2= 1.5 number without decimal point is 1
.5*2 =1 number without decimal point is 1
After reaching 1 stop it .
now it is top down ----->011
Hence the answer is 101.011

Sankar said:   1 decade ago
Q.The binary equalent of 5.375 is ..........
ans1)
5 binary equalent is 101
0.375 binary equalent is 3-011
7-111
5-101
take the first bit of 3,7,5 that is 011
so total correct ans is 101.011

Akansha Sneha said:   2 decades ago
To solve this divide the no. before decimal by 2 and write the remainder in reverse order and then multiply the no. after decimal by 2 and write the no. before decimal in the resultant in same order and do the same process until the resultant is zero.

Nikhil Ugale said:   1 decade ago
The binary of 5 = 101.
And,
Now for the binary 0.375*2=0.750----->0 |
0.750*2=1.500----->1 |
0.500*2=1.000------>1 |


For 0.375---> 011.

G.V.narayanan said:   1 decade ago
Ya its correct reason for 5.375

5=>binary number for 101
3=>binary number for 011

You see for minute in this section

What given data
(5.375) => (101.011) => two binary numbers between the point was given.

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).
(1)

Karan said:   1 decade ago
5.375
here know 5=101
now for 0.375

0.375
*2
____________=0 .collect top to bottom
.
0.750 .
*2 .
____________=1 .
1.500

0.500
*2
____________=1
1.000

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

Audhil 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...congrats to surya.......this is d right way......


Post your comments here:

Your comments will be displayed after verification.