A micro-library to easily calculate percentage between two numbers.
Project description
📊 Percentify
Percentify — because fractions are overrated 😎
A ridiculously tiny Python library for turning "part of a whole" into neat percentages without the brain math.
✨ Features
- ✅ Calculate the percentage of any two numbers
- ✅ Safe divide (returns
0.0if the denominator is zero — no more crashes 🎉) - ✅ Control the number of decimal places
- ✅ Zero dependencies, ultra-lightweight
📦 Installation
pip install percentify
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
percentify-0.1.2.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file percentify-0.1.2.tar.gz.
File metadata
- Download URL: percentify-0.1.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e430f5dea32d07dcb25ba44e4a30ab9df76af691c379df97dc27dd63cc2d5d56
|
|
| MD5 |
ba0c1e361f78962dace8809a2d787b9a
|
|
| BLAKE2b-256 |
4410546a266ff6be90dd67669276ca519bdc147d8467573735271e2c6ed4e0fc
|
File details
Details for the file percentify-0.1.2-py3-none-any.whl.
File metadata
- Download URL: percentify-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
752be1b8a0cc2305f5425f3782764a6a139dc0b52f80126e96cc69cab470dae1
|
|
| MD5 |
a73664af64afc3e37546a2b3ed4a335d
|
|
| BLAKE2b-256 |
72390f15651f76327ee1ff6db5ef10553ab38ac31b65b9f2d2460437243422a7
|