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
Binary number into Decimal
Faiha Lesson 1, 2020: Python Basics
Exception.py
HW L3
Python virables
intresting pattern
CRAZEEE!
Insert a sequence of same numbers, unpacking
Chim
ванечка с тебя 200 рублей, жду мой сладкий 🤑