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 hashes)
Built Distribution
Close
Hashes for calculator3220-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d25664be6c63f37955933f89285fdd23d2f5a87d47bd61de3e7eff0c71462fcc |
|
MD5 | 7356946ff5cf88deb2bc48e5e52c00a9 |
|
BLAKE2b-256 | 4d63abba289628bb966c50ea209dd579d9cb0aa06644b2142c6bc0684e1ecbd7 |