72 views
.binary number  1.11111…………. are give find decimal number
| 72 views
0
1.96875
0

approximately = 2.00000 @Magma can u elaborate how u got the answer?

+1
1 + 0.11111

$1+ (1 - 2^{-5} )$

I didn't understand  on thing that  whether the 11111.......goes on  or only there's 5 1's ??
0
i think tha would goto infinty....
0
then it would be  2 :3
0
If it will go to infinity, then ans will be 2.

After decimal part will form an go series with common ratio = 1/2.

1/2 1/4 1/8... uptil infinity.. there sum will be 1
0
doesn't anyone think it is floating point number may represent with IEEE 754 format ?
0
@shaikh brother it's simple floating point to decimal conversion!
0
it simple G.P series of infinite terms

so common ratio=1/2 a=1

sum=2
0

@arvin

yes brother, everyone is thinking like that only, even i too... But after that i got that doubt,

yes my doubt is invalid !

due to how a floating number in Binary representation have dot in between ?

0

@Shaik Masthan yes I too thought for that for a moment but when I read that carefully it was simple