Erreurs décimales : Différence entre versions

De Asso Val Libre
Aller à : navigation, rechercher
Ligne 1 : Ligne 1 :
 +
== Grand classique ==
  
 
* https://docs.python.org/fr/2.7/tutorial/floatingpoint.html
 
* https://docs.python.org/fr/2.7/tutorial/floatingpoint.html

Version du 31 octobre 2019 à 15:53

Grand classique

Python 
 Python 2.7.16 (default, Oct  7 2019, 17:36:04) 
 >>> 0.1+0.2
 0.30000000000000004
 >>> 0.1+0.2-0.3
 5.551115123125783e-17
Tcl 
 % puts [expr 0.1+0.2]
 0.30000000000000004
 % puts [expr 0.1+0.2-0.3]
 5.551115123125783e-17