Skip to main content

A small test package with calculator module.

Project description

McCalcy Package

The McCalcy package provides a Calculator class that allows you to perform basic arithmetic operations and manipulate a memory value.

Installation

To install the McCalcy package, you can use pip:

pip install mccalcy

Usage

First, import the package:

from mccalcy import mccalcy

Create a Calculator instance:

calc = mccalcy.Calculator()

Perform calculations using the available methods:

calc.add(5)
calc.subtract(2)
calc.multiply(3)
calc.divide(2)
calc.root(2)

Access the current memory value:

print("Memory:", calc.memory)

Reset the memory:

calc.reset_memory()
print("Memory after reset:", calc.memory)

Refer to the docstrings in the source code for detailed information on each method.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the GitHub repository.

License

This package is licensed under the MIT License.

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

mccalcy-0.0.15.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mccalcy-0.0.15-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file mccalcy-0.0.15.tar.gz.

File metadata

  • Download URL: mccalcy-0.0.15.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for mccalcy-0.0.15.tar.gz
Algorithm Hash digest
SHA256 6406094d2c7fc79ebdf28453e96bef0313b70790ba8dceb3f707159fb873c6cf
MD5 35a86c7473cc15e5ce4968f416c24652
BLAKE2b-256 184858c6ba1f7ab1ea53b1303a6cecfef419668ae475536d5a22f433432f6de5

See more details on using hashes here.

File details

Details for the file mccalcy-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: mccalcy-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for mccalcy-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 d304131864536394d89eecf16b5715a3ab1e278b817ad42da46b3e3c13a2f80e
MD5 dda54bf50873dbcaad6756d3a6aabbf8
BLAKE2b-256 b4a5afe97832bf43d143ee2d7ee759094d3a17cc8c6f613e28e4702da073b387

See more details on using hashes here.

Supported by

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