Skip to main content

Division

Project description

PyMiau

Use a short explanatory subtitle like, Make a Miau and a Guau

version downloads

Brings basic function related to division in python and relation between the two numbers to divide

Logo

Download and install

If you are using PyPI run the following promt in terminal:

pip install pydivision

You can also test the unstable version of the package with:

pip install -i https://test.pypi.org/simple/ pydivision

Quick start

The package contains functions to make a division, check if two numbers are divisible and ...

For instance:

import midivision
print(midivision.division(1,2))  #0.5

Code examples

division

Return the division between two numbers

Args:
-    a : Numerator
-    b : Denominator
    type_ (, optional): Type of result, possible values are "complex","str","int" and "float". Defaults to float.

Returns:
-    a/b: Result of division in expected type

For instance:

import midivision
print(midivision.division(1,2,"complex")) $0.5 + 0j

isdivisble

Args:
    a : Numerator
    b : Denominator

Returns:
    True if a is divisible by b, else False

For instance:

import midivision
print(midivision.isdivisible(5,5)) # True

Version 0.2:

  • Functions division and isdivisible was implemented.

Version 0.1:

  • First version of the package.

This package has been designed and written by Diego Acosta (C) 2023

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

midivision-0.2.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file midivision-0.2.tar.gz.

File metadata

  • Download URL: midivision-0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for midivision-0.2.tar.gz
Algorithm Hash digest
SHA256 12c31ac5cc74c5db76c242dabe90b7f78507b2aff182a9f04f68b2b1b20b4262
MD5 5af86260c84ee78342954ca567b0a0ba
BLAKE2b-256 e6f2a52ad499f67d6063fac52df0f6dbd1c558d0ac007bf5551bde62cb10be4a

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