Skip to main content

Division

Project description

midivision

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.4:

  • Typo Correct

Version 0.3:

  • Update Impage

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.4.tar.gz (3.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for midivision-0.4.tar.gz
Algorithm Hash digest
SHA256 514d7fa48830a20129b55f2a1955ee2a648ec55db7e981136fee0829d4bdc3df
MD5 24dbad833869b35d97a72beba3147d03
BLAKE2b-256 3cc53b58d8a95a8958d93178bed44fd00d72010f2196e98768a9170d233e7853

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