No project description provided
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_tomas-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5bcfe5901f2b2eb13f75cf8e21e3e72ac0cca7e54fc2b4339b6c7d924afd5f |
|
MD5 | 7de013ed64345b36a61b383285611bb6 |
|
BLAKE2b-256 | 606c3c8b54f0bb8fadead8a82c1ecc828e718e2178d45b5b68be874dcd6e3937 |