Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.

kkamara/rounding-money-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rounding-money-with-python

(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.

Installation

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

Usage

# 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 up

Not Using Docker?

python src/main.py -f=foo --bar=baz

Misc.

Python Docker Skeleton.

PHP Docker Skeleton.

NodeJS Docker Skeleton.

Contributing

Pull 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.

License

BSD

About

(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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors