Post AAt43hnChIELYCZMSu by krom@fosstodon.org
 (DIR) More posts by krom@fosstodon.org
 (DIR) Post #AAsxiYkEXhejgOiJEm by kzimmermann@fosstodon.org
       2021-08-31T13:26:28Z
       
       0 likes, 0 repeats
       
       >>> .00000000000001 == 0False>>> .00000000000001 + 1 == 1TrueOh, sure, sure, Python ;)#joke
       
 (DIR) Post #AAsxoOkQciuEPpaZnd by krom@fosstodon.org
       2021-08-31T13:28:18Z
       
       0 likes, 0 repeats
       
       @kzimmermann how did you done it?
       
 (DIR) Post #AAsxqNKoqeVOc1YMSW by sotolf@fosstodon.org
       2021-08-31T13:28:25Z
       
       0 likes, 0 repeats
       
       @kzimmermann ah the fun of floating point numbers :p
       
 (DIR) Post #AAszE83zNXJM9XZUuW by kzimmermann@fosstodon.org
       2021-08-31T13:44:13Z
       
       0 likes, 0 repeats
       
       @krom uhh I don't know?But it's Python 3.8.10 here :P
       
 (DIR) Post #AAt43hnChIELYCZMSu by krom@fosstodon.org
       2021-08-31T14:32:04Z
       
       0 likes, 0 repeats
       
       @kzimmermann here's Go https://play.golang.org/p/T9t9oJgBWe6It's the same and it's no surprise. That's how IEEE 754 works.
       
 (DIR) Post #AAt43iHKtGKj3efQQq by kzimmermann@fosstodon.org
       2021-08-31T14:38:21Z
       
       0 likes, 0 repeats
       
       @krom you did see the #joke tag, right?
       
 (DIR) Post #AAt4ITtaeFbsnGbOam by krom@fosstodon.org
       2021-08-31T14:41:01Z
       
       0 likes, 0 repeats
       
       @kzimmermann oh… that … nevermind 🤷‍♂️
       
 (DIR) Post #AAt4RHrKliEG4NkIsa by humrochagf@fosstodon.org
       2021-08-31T13:54:27Z
       
       0 likes, 0 repeats
       
       @krom @kzimmermann it depends on your python architecture version and OS, if you are running 64bits version just keep adding more zeros until you overflow your OS float representational capacity.
       
 (DIR) Post #AAt4RIRUbH9VsWfBEu by humrochagf@fosstodon.org
       2021-08-31T14:07:05Z
       
       0 likes, 0 repeats
       
       @krom @kzimmermann in fact python has a really nice tutorial on the subject for those interested in learning a bit more about floats, is not so long and well written  https://docs.python.org/3/tutorial/floatingpoint.html
       
 (DIR) Post #AAt4RIvGoYyJMsaxea by kzimmermann@fosstodon.org
       2021-08-31T14:42:36Z
       
       0 likes, 0 repeats
       
       @humrochagf that's a nice resource! But you did notice that the #joke tag in it... yeah? :P@krom
       
 (DIR) Post #AAtEKjCHjAWyN53ZL6 by humrochagf@fosstodon.org
       2021-08-31T16:33:29Z
       
       0 likes, 0 repeats
       
       @kzimmermann @krom Sure, my tips were to help @krom with the reproduction and understanding the diff on his interpreter 😊