Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Calculator_tomassinkevicius-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Calculator_tomassinkevicius-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file Calculator_tomassinkevicius-0.0.1.tar.gz.

File metadata

File hashes

Hashes for Calculator_tomassinkevicius-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cf3f1a0bf7ac05df30dfdc7566132942e0f4aaae32426a180af08377c352850c
MD5 4413e71aa0a845f549a23187596ae9ca
BLAKE2b-256 97b1af7fd170c5563959246deb00a646a2f463d15ba386613c946fb705bf7538

See more details on using hashes here.

File details

Details for the file Calculator_tomassinkevicius-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Calculator_tomassinkevicius-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40dbca6f7dff4d0c0ff7610a850d9dbbdb4c131102413c5abdb971a11c6fa6d3
MD5 c186ae4ea53520d24bbab07b868af09d
BLAKE2b-256 8cba17f65be2005cdc7596296eab45269bf323b4d05799c57d23aab38cb90ece

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page