Basic calculator
Project description
JustCalc
Introduction
Welcome to JustCalc, a basic Python calculator capable of performing simple arithmetic operations and more.
Features
JustCalc provides the following functionalities:
- Addition
- Subtraction
- Multiplication
- Division
- Taking the nth root of a number
- Displaying current memory
- Resetting memory to zero
Installation
You can install JustCalc using the following command:
pip install justcalc
Usage
from justcalc.calculator import Calculator
# Create instance of Calculator
calc = Calculator()
# Perform Addition
calc.add(5)
# Perform Subtraction
calc.subtract(2)
# Perform Multiplication
calc.multiply(9)
# Perform Division
calc.divide(3)
# Take the nth root of a current number in memory
calc.root(3)
# Display current memory
calc.current_memory()
# Reset memory
calc.reset_memory()
Testing
To run the tests in this project, you can use the following command:
python -m pytest
Contributing
Contributions to JustCalc are welcome! If you encounter any issues or have suggestions for improvement, please follow the guidelines below:
- For bug reports or feature requests, please open an issue on the GitHub repository.
- If you'd like to contribute code, fork the repository, make your changes, and submit a pull request.
- Follow the coding style and conventions used in the project.
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 justcalc-0.0.1.tar.gz.
File metadata
- Download URL: justcalc-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8891f91c5407912f9b4c422fa65e27bab3bcdb6c0643adcaab48c16bbc5a5249
|
|
| MD5 |
bb3f6dc74274c6b4e962103b7f8a0658
|
|
| BLAKE2b-256 |
c081667bedc3f98addae7a69f1b533830070587601a033cbfe4d15cdcf0a2ba8
|
File details
Details for the file justcalc-0.0.1-py3-none-any.whl.
File metadata
- Download URL: justcalc-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11e0af0a5f8a9b01b19be91b0b433f60b524c0576f0b089b75467c654c8790d6
|
|
| MD5 |
cbd6cb6212a5db99ada66e265eb6d770
|
|
| BLAKE2b-256 |
d8507d53e56e2fcb0a36dbc28e7993f9bae3298ba67cfa21fcd9910f781e211f
|