The Gateway to Computer Science Excellence
0 votes
69 views
.binary number  1.11111…………. are give find decimal number
in Digital Logic by Junior (761 points) | 69 views
0
1.96875
0

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

0
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

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,644 questions
56,503 answers
195,553 comments
101,035 users