A custom fraction math library for Python
Project description
Fraction Library 🧮
A simple Python class to do arithmetic with fractions.
Usage
from fraction import Fraction
f1 = Fraction(1, 2)
f2 = Fraction(3, 4)
print(f1 + f2) # Add
print(f1 - f2) # Subtract
print(f1 * f2) # Multiply
print(f1 / f2) # Divide
#\x00 \x00p\x00y\x00f\x00r\x00a\x00c\x00t\x00i\x00o\x00n\x00x\x00
\x00
\x00
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
pyfractionx-0.2.1.tar.gz
(1.3 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 pyfractionx-0.2.1.tar.gz.
File metadata
- Download URL: pyfractionx-0.2.1.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3968c758c275dcd230d3dbdf9eb0f1883abaccc98cb4baadd68866b01e701d2
|
|
| MD5 |
dced900293c693a8c0c6af2b9e84c257
|
|
| BLAKE2b-256 |
a78479b682a88f258022151dcee558c1b8145660269742a671777e126ae0c819
|
File details
Details for the file pyfractionx-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyfractionx-0.2.1-py3-none-any.whl
- Upload date:
- Size: 1.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33e13382d7c65767919f9a4395a69b730c086d29308e2aa25d457091a94f3eff
|
|
| MD5 |
635ce26ad56952e24bb63d7136b8f41d
|
|
| BLAKE2b-256 |
29ba7cfc895a77df4f85a2b34c0a5043552e5b2cb2846295f789984c4965ab49
|