A simple arithmetic calculator package
Project description
Arithmetic Calculator Module
This module is a simple arithmetic calculator. It can perform addition, subtraction, multiplication, and division. It can also perform square root and resetting opertations.
Installation via pip
Use the package manager pip to install the module.
pip install calculator-module
Installation via Docker
Use the package manager docker to install the module.
docker pull minasefikadu/calc_image
Usage
from calculator import Calculator
calculator = Calculator()
calculator.add(2) # adds 2 to the current value
calculator.subtract(10) # subtracts 10 from the current value
calculator.multiply(50) # multiplies the current value by 50
calculator.divide(2) # divides the current value by 2
calculator.square_root(9, 2) # returns the nth root of the current value
# in this case, the square root of 9
calculator.reset() # resets the current value to 0
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 calculator_module-0.0.2.tar.gz.
File metadata
- Download URL: calculator_module-0.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20c8c1442caa1f120d798167bfde3c3a8bcf1e4cffb70588caca7318e7c478ca
|
|
| MD5 |
1ce793ebe3a232ce0337aa782948bed3
|
|
| BLAKE2b-256 |
713354a94f225f94e86427da6ba554210e68db6f58665c01429c51dfcc97f783
|
File details
Details for the file calculator_module-0.0.2-py3-none-any.whl.
File metadata
- Download URL: calculator_module-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce7e896082c6a53ddf01bdbdf7314ab8469150e4285e044e4f304fa4d09bffa9
|
|
| MD5 |
87cf4725ff0ce78da693863c12734a14
|
|
| BLAKE2b-256 |
27f173e87922587a635fca43bc39f42cc4c6dcc3aaac858f24c0c943d8b0dea9
|