15,394,700 members

# Welcome to the Lounge

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 Re: 1 = 0 Richard Deeming2-Dec-15 2:34 Richard Deeming 2-Dec-15 2:34
 Re: 1 = 0 HobbyProggy2-Dec-15 2:39 HobbyProggy 2-Dec-15 2:39
 Re: 1 = 0 Richard Deeming2-Dec-15 2:48 Richard Deeming 2-Dec-15 2:48
 Re: 1 = 0 HobbyProggy2-Dec-15 2:51 HobbyProggy 2-Dec-15 2:51
 Re: 1 = 0 Nelek2-Dec-15 3:40 Nelek 2-Dec-15 3:40
 Re: 1 = 0 kiLLe_5123-Dec-15 0:17 kiLLe_512 3-Dec-15 0:17
 Re: 1 = 0 Nelek2-Dec-15 3:37 Nelek 2-Dec-15 3:37
 Re: 1 = 0 yiangos20-Mar-16 12:57 yiangos 20-Mar-16 12:57
 Well... 0.999... is 0+(9/10) + (9/100) + (9/1000) +... which is 0+9*((1/10)+(1/100)+(1/1000)+...) which is 9* (sum(1/10^n)) where the sum runs over n for n=1 to infinity. Now for the same sum, if n ran from 0 to infinity, there is a convenient formula, that says it is (I'll mark this with a capital S to distinguish it from the one we're trying to calculate): Sum(1/10^n)=1+1/10+1/100+...=1/(1-(1/10))=1/(9/10)=10/9 therefore the sum we want is 1/10+1/100+...=(10/9)-1=1/9 therefore 0.999...=9*(1/9)=1 So it's math. On the other hand, computer calculated numbers are approximations, and in the binary system at that, and this is why you get all those rounding errors. But I get the feeling you already know all this, and that you are just toying with us obsessive compulsive types. Φευ! Εδόμεθα υπό ρηννοσχήμων λύκων! (Alas! We're devoured by lamb-guised wolves!)
 Re: 1 = 0 Nagy Vilmos1-Dec-15 23:44 Nagy Vilmos 1-Dec-15 23:44
 Re: 1 = 0 HobbyProggy1-Dec-15 23:47 HobbyProggy 1-Dec-15 23:47
 Re: 1 = 0 Florgenator3-Dec-15 0:31 Florgenator 3-Dec-15 0:31
 Re: 1 = 0 Member 121837503-Dec-15 2:39 Member 12183750 3-Dec-15 2:39
 Re: 1 = 0 willichan3-Dec-15 5:46 willichan 3-Dec-15 5:46
 Re: 1 = 0 yiangos20-Mar-16 13:02 yiangos 20-Mar-16 13:02
 Re: 1 = 0 willichan31-Mar-16 12:27 willichan 31-Mar-16 12:27
 Re: 1 = 0 yiangos6-Apr-16 10:17 yiangos 6-Apr-16 10:17
 Re: 1 = 0 jschell3-Dec-15 12:47 jschell 3-Dec-15 12:47
 Re: 1 = 0 obermd3-Dec-15 17:11 obermd 3-Dec-15 17:11
 Re: 1 = 0 maze33-Dec-15 22:49 maze3 3-Dec-15 22:49
 Re: 1 = 0 Member 120239884-Dec-15 0:06 Member 12023988 4-Dec-15 0:06
 Re: 1 = 0 James Curran3-Dec-15 5:51 James Curran 3-Dec-15 5:51
 Re: 1 = 0 CPallini1-Dec-15 23:07 CPallini 1-Dec-15 23:07
 Re: 1 = 0 Rage1-Dec-15 23:28 Rage 1-Dec-15 23:28
 Re: 1 = 0 Marc Clifton2-Dec-15 1:25 Marc Clifton 2-Dec-15 1:25
 Re: 1 = 0 Corporal Agarn2-Dec-15 3:44 Corporal Agarn 2-Dec-15 3:44
 Last Visit: 31-Dec-99 18:00     Last Update: 13-Aug-22 17:07 Refresh ᐊ Prev1...11802118031180411805118061180711808118091181011811 Next ᐅ