0

The snippet below seems very very very strange to me. The result should be -3.6.. Some rounding failure or have i missed something here?

Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> -5.0+float(14)*0.1
-3.5999999999999996
>>>
kungcc
  • 1,832
  • 5
  • 25
  • 48

0 Answers0