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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: solve cubic equations (Python)
by LanX (Saint) on May 05, 2017 at 18:47 UTC | |
by no_slogan (Deacon) on May 05, 2017 at 18:54 UTC | |
by LanX (Saint) on May 05, 2017 at 19:07 UTC | |
by no_slogan (Deacon) on May 05, 2017 at 19:22 UTC | |
by LanX (Saint) on May 05, 2017 at 23:20 UTC | |
| |
by Anonymous Monk on May 05, 2017 at 20:49 UTC |
In Section
Cool Uses for Perl