Simple math calculator
Project description
Simple calculator3220
calculator is a python method for simple math actions. Starting memory value = 0
Installation
pip install calculator3220
Usage
Make a simple math actions like addition, substraction, divide, multiply, root:
>>> import calculator3220
>>> calculator = calculator3220.Calculator()
- Adding number to memory value(memory value is 0):
>>> calculator.add(5)
5.0
>>> calculator.add(3)
2.0
- Substract number from memory value(memory value is 0):
>>> calculator.sub(5)
-5.0
>>> calculator.sub(-9)
4.0
- Dividing memory value by number(memory value is 80):
>>> calculator.div(5)
16
>>> calculator.div(4)
4
- Multiply memory value by number(memory value is 5):
>>> calculator.mul(10)
50
>>> calculator.mul(2)
100
- Root by number of memory value(memory value is 27):
>>> calculator.root(3)
3
- Reset memory value(memory value is 27):
>>> calculator.reset()
0
License
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
calculator3220-0.1.5.tar.gz
(2.3 kB
view details)
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 calculator3220-0.1.5.tar.gz.
File metadata
- Download URL: calculator3220-0.1.5.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9647838b9f847ce278189fbe42b4ef90d3c0a3ac77cc638493a5e93c6f59dc2b
|
|
| MD5 |
aa124aff3a450d2656ad01f16cf66b98
|
|
| BLAKE2b-256 |
4f20c6c5e49c7e2451c8788c77dc8e939fe4c6df962b423d7df090e41164414f
|
File details
Details for the file calculator3220-0.1.5-py2.py3-none-any.whl.
File metadata
- Download URL: calculator3220-0.1.5-py2.py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d25664be6c63f37955933f89285fdd23d2f5a87d47bd61de3e7eff0c71462fcc
|
|
| MD5 |
7356946ff5cf88deb2bc48e5e52c00a9
|
|
| BLAKE2b-256 |
4d63abba289628bb966c50ea209dd579d9cb0aa06644b2142c6bc0684e1ecbd7
|