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.1.0.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.1.0.tar.gz.
File metadata
- Download URL: pyfractionx-0.1.0.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 |
1a7374c7aab37acce84a7f5e9f155adf08828b1640e6943b19dc682876d9b734
|
|
| MD5 |
6cda8125f3380cbadeb7a06137a746ae
|
|
| BLAKE2b-256 |
b43bb15ed881e53093c0d074f8de9490d0d201bdc12918fe51853e0a80ba694a
|
File details
Details for the file pyfractionx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyfractionx-0.1.0-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 |
281f82b5ac1f2b98eca12c0066fc8fc78e8384f2d70800f87b0f55f2ee11297a
|
|
| MD5 |
3b652014bb796195c3b533c1a2406b9b
|
|
| BLAKE2b-256 |
25043072c642aa57571917937987fc493bf4255a492c0ba56058857be5b13610
|