Skip to main content

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


Download files

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

Source Distribution

calculator_tomas-0.1.0.tar.gz (1.6 kB view hashes)

Uploaded Source

Built Distribution

calculator_tomas-0.1.0-py3-none-any.whl (2.0 kB view hashes)

Uploaded Python 3

Supported by

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