(14-Jun-2026) This repo demonstrates Bankers' Rounding (half-to-even) for monetary values in Python. The strategy is available out of the box via the Python API, making it a suitable choice for financial calculations where rounding bias must be minimised.
Make sure you have Docker Compose installed if you are using Docker.
python -m venv env
source env/bin/activate
python -m pip install -r requirements.txt# to run on first time
docker-compose up --build
# to run in background
docker-compose up --build -d
# to run when file-changes have been made
docker-compose uppython src/main.py -f=foo --bar=bazPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.