Skip to main content

Fraction operation by Adisak Karnbanjong

Project description

adikfraction is a Python library for dealing with Fraction operation.

Installation

Use the package manager pip to install Package_name.

pip install adikfraction

Usage

from adikfraction import Fraction

fraction1 = Fraction(2,5)
fraction2 = Fraction(7,10)
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

Adisak Karnbanjong

License

MIT

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

adikfraction-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file adikfraction-0.0.1.tar.gz.

File metadata

  • Download URL: adikfraction-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for adikfraction-0.0.1.tar.gz
Algorithm Hash digest
SHA256 839775ec435439ff3550d75bc2660d13e2a51cdaaa4178f20efb0c8d52e4d22d
MD5 8a18ccade001e0b6ca498adb2959849d
BLAKE2b-256 569d636105c83b6afec443c32f248b2e2bf2e904b30ba504b27580e7b1ddcebf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page