http://www.perlmonks.org?node_id=1189597


in reply to Re^3: solve cubic equations (Python)
in thread solve cubic equations

Python variables aren't typed. The result type is determined by the value (in Perl, it's usually determined by the operator). Float-vs-int-division is one of the annoying unnecessary incompatibilities in python3.
> python2.7 -c 'print(5/2)' 2 > python3.5 -c 'print(5/2)' 2.5