Run Code
|
API
|
Code Wall
|
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
P
Single and double qoute
List problem - add items
self "keyword"
reverse the number
Game4
hw5 ss while
Faiha Lesson 1, 2020: Python Basics
for
p1