Calculator
Perform basic math operations with internal memory
Calculator methods:
- add - add a real number to the internal memory value
- subtract - subtract a real number from the internal memory value
- multiply - multiply the internal memory value by a real number
- divide - divide the internal memory value by a real number
- root - take (n) root of the internal memory value
- reset - reset the internal memory value
Installation
pip install pycalc3
Usage
>>> from pycalc3.calculator import Calculator
>>> cal = Calculator()
>>> cal.add(12)
>>> cal.memory_value
12.0
>>> cal.subtract(3)
>>> cal.memory_value
9.0
>>> cal.multiply(3)
>>> cal.memory_value
27.0
>>> cal.divide(3)
>>> cal.memory_value
9.0
>>> cal.root(2)
>>> cal.memory_value
3.0
>>> cal.reset()
>>> cal.memory_value
0.0
Changelog
License
Metadata
Release files for pycalc3 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycalc3-0.0.3.tar.gz | 7.4 kB | Without provenance | Details for pycalc3-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycalc3-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pycalc3-0.0.3-py3-none-any.whl |
Total release size: 10.3 kB
Release files / pycalc3-0.0.3.tar.gz
| Download URL | pycalc3-0.0.3.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0fea917c4355c4438638ec5accab470f20ede9f0de6878a5681812d18bc5483
|
|
BLAKE2b-256 checksum How to use checksums |
ca1de807e0c8bd2f5aeca36a468405081bdaa64ec13fab8c957ef4cacd19b1de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Release files / pycalc3-0.0.3-py3-none-any.whl
| Download URL | pycalc3-0.0.3-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1903b72121dbad4cc9bd24dbd2c0e42837eca3951aa05997920b3f2d59a36bcb
|
|
BLAKE2b-256 checksum How to use checksums |
eb2a4b141106b33dcd541b7a6fd1bb4591d4c9d2fa024d8aea64b42b94c7984a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Security for pycalc3 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.