Skip to main content

A small basic calculator

Project description

xeo-simple-calc

This is my first python library. It is a simple calculator.

How to use

First, install the library

pip install xeo-simple-calc

Next, import it

from xeosimplecalc import *

Commands

add(num1, num2)

Adds two numbers.

subtract(num1, num2)

Subtracts two numbers.

multiply(num1, num2)

Multiplies two numbers.

divide(num1, num2)

Divides two numbers. (returns a float)

exponentiation(num, degree)

Exponentiates a number to a certain degree. (Sorry the English is bad :-))

square_root(num)

Returns the square root of num. (returns a float)

Change Log

0.0.6 (17.06.2020)

  • Replaced float_divide() and int_divide() with divide()
  • Added exponentiation() and square_root()
  • Updated README.md

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

xeo_simple_calc-0.0.6-py3-none-any.whl (2.8 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