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.1.tar.gz
(1.4 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.1.tar.gz.
File metadata
- Download URL: pyfractionx-0.1.1.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6133bff642548b342d955222f187563043fd65f9ad28da7a72b94ac7c92fd691
|
|
| MD5 |
75c34ef2a9a6c18fcdf549ac0f21e6f4
|
|
| BLAKE2b-256 |
877f1d5cc0fe3d7dd5ce05285d135aad8528f757596fb61ab91af63e5e4a8cb3
|
File details
Details for the file pyfractionx-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyfractionx-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.6 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 |
c27dd478741a0b9c4305833f88bd76ec9087221055dc2eef7a2677b9957936a2
|
|
| MD5 |
9973dd40c706bb41fb3a490e1d5cdf21
|
|
| BLAKE2b-256 |
27db988b5bee61068a991ceb02dcb27bef50a51f49e558ccdea22558252b9a41
|