Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

test valeurs 2 flottants python

>>> delta = 0.0001
>>> var = 3.0 - 2.7
>>> 0.3 - delta < var < 0.3 + delta
True
>>> abs(var - 0.3) < delta
True
Source by python.sdv.univ-paris-diderot.fr #
 
PREVIOUS NEXT
Tagged: #test #valeurs #flottants #python
ADD COMMENT
Topic
Name
6+4 =