Python REPL:
>>> 0.3 - 0.1
0.19999999999999998
Ruby REPL: 0.3 - 0.1
=> 0.19999999999999998 >>> 0.3 - 0.1
0.19999999999999998
Ruby REPL: 0.3 - 0.1
=> 0.19999999999999998 Python 2.7.12 (default, Jul 1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 0.3 - 0.1
0.19999999999999998Python 3.5.1 yields the same result
From the documentation:
> print evaluates each expression in turn and writes the resulting object to standard output (see below). If an object is not a string, it is first converted to a string using the rules for string conversions.
I can't even find what the rules for string conversions are in the documentation :/ Oddly enough they're not described under https://docs.python.org/2/reference/expressions.html#string-...