executablebooks / jupyter-book

Create beautiful, publication-quality books and documents from computational content.
http://jupyterbook.org
BSD 3-Clause "New" or "Revised" License
3.76k stars 652 forks source link

Imprecise description of round on page /pages/data_types/coercion.html #2134

Open lukeu opened 3 months ago

lukeu commented 3 months ago

print(int(-6.8)) returns -6 so to say it always rounds "down" seems imprecise. Should maybe say the truncation rounds towards zero?

(Disclaimer: I don't use Python, I just tried it in a repl.)

welcome[bot] commented 3 months ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada: