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.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.2.0.tar.gz.
File metadata
- Download URL: pyfractionx-0.2.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 |
971153448a40c3cc4611c285fa73ca7d8e037134772347728054aa5e1b702cf0
|
|
| MD5 |
e4eb2d52ffa26151d9d97afe7fe52a19
|
|
| BLAKE2b-256 |
aa442eef6296d9b4935a2b202e5bfddd359b1dd344449edeb15589dc1575e7ee
|
File details
Details for the file pyfractionx-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyfractionx-0.2.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 |
ff5ac8372e3dff004efee24d4a568dce6e07c6aa62565a9bf845d7de40932336
|
|
| MD5 |
f1eab616dd8b13868ad7736d98d322a6
|
|
| BLAKE2b-256 |
d42db8c3468dc423e6a50d1ff786c2fb2ea08c164fad8be948d55efd7c73512d
|