From 6e1a4dbdef0ef01717c5ad2e149fc1099f4fe96e Mon Sep 17 00:00:00 2001 From: realpython-bot <42617967+realpython-bot@users.noreply.github.com> Date: Sat, 26 Sep 2026 06:05:55 +0000 Subject: [PATCH] Sync python-rounding with the maintenance update of How to Round Numbers in Python Co-Authored-By: Claude Opus 5.5 --- python-rounding/README.md | 8 ++++++++ python-rounding/requirements.txt | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 python-rounding/requirements.txt diff --git a/python-rounding/README.md b/python-rounding/README.md index 3a6ab62c59..3dde0a3b8d 100644 --- a/python-rounding/README.md +++ b/python-rounding/README.md @@ -1,3 +1,11 @@ # How to Round Numbers in Python Here you can find code examples showing different rounding strategies as covered by the Real Python tutorial [How to Round Numbers in Python](https://realpython.com/python-rounding/). + +## Requirements + +The code requires Python 3.12 or later. To run the NumPy and pandas examples, install the pinned dependencies into a virtual environment: + +```console +$ python -m pip install -r requirements.txt +``` diff --git a/python-rounding/requirements.txt b/python-rounding/requirements.txt new file mode 100644 index 0000000000..7c32977de0 --- /dev/null +++ b/python-rounding/requirements.txt @@ -0,0 +1,2 @@ +numpy==2.5.3 +pandas==3.0.6