Skip to main content

ShabiiFraction is a Python library for dealing with arithmetic operation of fractions.

Installation

Use the package manager pip to install ShabiiFraction.

pip install ShabiiFraction

Usage

from ShabiiFraction import Fraction

a,b,c,d = [int(e) for e in input().split()]
fraction1 = Fraction(a,b)
fraction2 = Fraction(c,d)
print(f"fraction1 = {fraction1}")
print(f"fraction2 = {fraction2}")
print(f"fraction1+fraction2 = {fraction1+fraction2}")
print(f"fraction1-fraction2 = {fraction1-fraction2}")
print(f"fraction1*fraction2 = {fraction1*fraction2}")
print(f"fraction1/fraction2 = {fraction1/fraction2}")

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Author

Charawi Detphumi

License

MIT

Release files for ShabiiFraction 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ShabiiFraction 0.0.2
File Size Uploaded
ShabiiFraction-0.0.2.tar.gz 3.1 kB Details

Release files / ShabiiFraction-0.0.2.tar.gz

Download URL ShabiiFraction-0.0.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
826d7c1254af4bcf56a93af6142e633a2c59fe29b731ce0d53e76499b1ad629f
BLAKE2b-256 checksum
How to use checksums
ac0ab5ca7959c1a6c93dad5a1f54b3724116ee6173eaf14f86ff70417eccc7fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page