Skip to main content

Ruthless Rounding at it's Finest :)

Project description

#
# zEquals :)
#

Because it starts with a z.
Because I've heard about it via 'Numberphile'.
Because it's awesome.

Basic usage:

>>> from zequals import *
>>> zMul(1345,653)
589100

If you are thinking : Now what's the use, 1345 times 653 should be 589680....

Please take a look here : http://www.youtube.com/watch?v=aOJOfh2_4PE

But it get's better!

After installing zequals one could do this :

from zequals import z

@z
def myAwesomeMathFunctions(x,y,z):
d = someWickedCalculus(x,y)
f = someOtherWeirdThing(z,x)
return d/f

The 'deocration' of your function with the @z decorator will make sure all
arguments passed to your function will be 'zequalized'.

Real World Example:

import math

def myFunc(a,b):
return math.sqrt((a*a) + (b*b))

myFunc(1253,3543)
# will yield : 3758.03911634778

now once we go

@z
def myFunc(a,b):
return math.sqrt((a*a) + (b*b))

myFunc(1253,3543)
# will yield 3754.210969031975

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

zequals-0.0.3.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zequals-0.0.3.macosx-10.8-intel.exe (63.2 kB view details)

Uploaded Source

File details

Details for the file zequals-0.0.3.tar.gz.

File metadata

  • Download URL: zequals-0.0.3.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zequals-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2ffde55912416fa73214ab21e62491a2bc552137aa49764d7f6a1f7efb935b15
MD5 b9056da29234187d2e04a0f091901c21
BLAKE2b-256 96409fa3bc86ce518fbb5ac55a919928e32080d8e4848d7a862712bd8edbfbf1

See more details on using hashes here.

File details

Details for the file zequals-0.0.3.macosx-10.8-intel.exe.

File metadata

File hashes

Hashes for zequals-0.0.3.macosx-10.8-intel.exe
Algorithm Hash digest
SHA256 b89019ed9cd199ad5fd1e8ad4c9724136473e7e844ba4e3104f970b0caee14e5
MD5 06da818d9a04374d80fb263ccb75d930
BLAKE2b-256 8af0009c340e6ddd4944ed22ac5a0ffa453712103547020eabed56807240cda6

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