Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
normal,*args,**kwargs
1.py
Python wtf ?
Simple but obfuscated text encrypting
chickens,cows,pigs
Implement a stack by using an array
Linear Regression Python
Lab_III_3_24_11_2020
Redd
(P3) Starsza data
Please log in to post a comment.