calculator-tomas-0.1.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | calculator-tomas-0.1.0 |
| نام | calculator-tomas |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Your Name |
| ایمیل نویسنده | you@example.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/calculator-tomas/ |
| مجوز | - |
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
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.11,<4.0 | Python |
نحوه نصب
نصب پکیج whl calculator-tomas-0.1.0:
pip install calculator-tomas-0.1.0.whl
نصب پکیج tar.gz calculator-tomas-0.1.0:
pip install calculator-tomas-0.1.0.tar.gz