in ,

I always thought “when is 0.9 repeating equal to 1?” kind of a funny philosophical question about limits – turns out python just straight up answers it. The answer is 15.

I always thought "when is 0.9 repeating equal to 1?" kind of a funny philosophical question about limits - turns out python just straight up answers it. The answer is 15. | python-memes | ProgrammerHumor.io
python-memes | ProgrammerHumor.io

Content

In 161: int (9.9) Out 16: 9 In 17: in (9.99999999999999999999999999999999999999999999999) Out 171: 10 In 181: int (9.9999) Out 18: 9 In 19: int (9.9999999999) Out 191: 9 In 201: int (9.9999999999999999999) Out 20: 10 In 21: int (9.999999999999999) Out 211: 9 In 221: int (9.999999999999999999) Out 22: 10 In 231: int(9.99999999999999999) Out 231: 10 In 241: int (9.9999999999999999) Out 24: 10 In 25: int (9.999999999999999) Out 251: 9