File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55[ ![ License] ( https://img.shields.io/pypi/l/percentify.svg?style=flat&color=orange )] ( LICENSE )
66[ ![ Build Status] ( https://github.com/data-centt/percentify/actions/workflows/python-app.yml/badge.svg )] ( https://github.com/data-centt/percentify/actions/workflows/python-app.yml )
77
8- ** Percentify** — a tiny Python helper that turns * "part of a whole"* into a clean percentage.
8+ ** Percentify** is a Python helper that turns * "part of a whole"* into a clean percentage.
99Stop typing ` (part / whole) * 100 ` and worrying about division by zero.
1010
1111---
@@ -14,13 +14,20 @@ Stop typing `(part / whole) * 100` and worrying about division by zero.
1414
1515A tiny, zero-dependency Python toolkit for all things percentages:
1616
17+ <<<<<<< HEAD
1718- ** ` percent ` ** — what percentage is ` part ` of ` whole ` ?
1819- ** ` percent_change ` ** — how much did a value increase or decrease?
1920- ** ` percent_diff ` ** — how far apart are two values?
2021- ** ` percent_distribute ` ** — split a total into weighted shares.
2122- ** ` percent_format ` ** — turn any number into a clean ` "25.0%" ` string.
2223
2324All functions handle edge cases (division by zero, negative values) safely and let you control decimal precision.
25+ =======
26+ - Calculates what percentage one number is of another.
27+ - Handles divide-by-zero safely (returns 0.0 instead of crashing).
28+ - Lets you choose how many decimal places you want to round your answer to.
29+ - Has zero dependencies — just pure Python.
30+ >>>>>>> f3187f75a952d766e7b76d18709e01138fed42d9
2431
2532## 📦 Installation
2633```
You can’t perform that action at this time.
0 commit comments