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.3.tar.gz (8.7 kB view hashes)

Uploaded Source

Built Distribution

mccalcy-0.0.3-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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