0

Comparing floats in python

How do you compare two floats in python ? Help plz!

20th Mar 2021, 6:40 AM
Salwa Seif
Salwa Seif - avatar
2 Antworten
+ 3
abs(a-b)<0.0000000000000000....1
20th Mar 2021, 6:49 AM
Oma Falk
Oma Falk - avatar
0
with ==, <, <=, >, or >=
20th Mar 2021, 6:50 AM
visph
visph - avatar