Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
floating point limitations
print("Is 0.1 equal to 0.10000000000000001? Let's see:") print(0.1 == 0.10000000000000001) print("No shit, really?! How about this: does 0.1 + 0.1 + 0.1 == 0.3?") print(0.1 + 0.1 + 0.1 == 0.3) print("Well, I'll be damned! Maybe atleast 0.1 * 3 == 0.3?") print(0.1 * 3 == 0.3) print("Dude, you are killing me! Why?") print("Oh, it's because i didn't read the documentation... https://docs.python.org/3/tutorial/floatingpoint.html")
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
regu
H.W5
Removing adjacent duplicates from string
Ваня и забор
ElaineBrown** rextester.com
DuckTyping.py
spoj ANARC09A
Short python input
print
Square numbers
Please log in to post a comment.