|
|
|
|
|
by kingforaday
97 days ago
|
|
Spot on. Py2 was integer division, Py3 was true division. In Py2 you could get the true division with an `from __future__ import division` (Can't recall which Py2 version this became an import). Fun fact too: In Py3 you can do a // to get back to the floor division effect (e.g. 1 // 2 --> 0) |
|
https://peps.python.org/pep-0238/