Skip to main content

Division

Project description

midvision

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

What's new:

  • Update Image

Version 0.3:

  • 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.3.tar.gz (3.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: midivision-0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 89672442b1bee9f2a02fbf13296af1e5c776d094083d9e9473ca7725e9effe84
MD5 f1ace85f8859bee8f3bf1cba261da7e8
BLAKE2b-256 f10da7f758902835d2f29c530d0d0baf35f2861aaeab6ae5bf6211ec1042b242

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