Basic operations calculator
Project description
Attributes
memory : float Calculator memory
Methods
add(number): Takes the number and adds it to calculator memory subtract(number): Takes the number and subtracts it from calculator memory multiply(number): Takes number from Calculators memory and multiplies it by a given number divide(number): Takes number from Calculators memory and divides it by a given number root(number): Takes number from Calculators memory and takes the root of it by a given number reset(): Resets calculator memory
Code working examples:
from calculator_tomassinkevicius import Calculator
Calculator.add(10) 10.0
Calculator.subtract(5) 5.0
Calculator.multiply(12) 60.0
Calculator.divide(10) 6.0
Calculator.root(2) 2.4494
Calculator.reset() 0.0
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
Hashes for Calculator_tomassinkevicius-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf3f1a0bf7ac05df30dfdc7566132942e0f4aaae32426a180af08377c352850c |
|
MD5 | 4413e71aa0a845f549a23187596ae9ca |
|
BLAKE2b-256 | 97b1af7fd170c5563959246deb00a646a2f463d15ba386613c946fb705bf7538 |
Hashes for Calculator_tomassinkevicius-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40dbca6f7dff4d0c0ff7610a850d9dbbdb4c131102413c5abdb971a11c6fa6d3 |
|
MD5 | c186ae4ea53520d24bbab07b868af09d |
|
BLAKE2b-256 | 8cba17f65be2005cdc7596296eab45269bf323b4d05799c57d23aab38cb90ece |