Skip to main content

Extension of decimal library.

Reason this release was yanked:

does not import.

Project description

variable - v

function - f

staticmethod - sm

classmethod - cm

class - s

object - o

Precision -

  1. (v) __DecimalPrecision: variable used for precision

  2. (f) setpr(__p): changes the precision __pr: the new precision, changes __DecimalPrecision

  3. (f) getpr(): get the precision

Note - Precision is integer

Constant -

  1. (v) __Pi: variable that stores the value of pi

  2. (v) __EulersNumber: variable that stores the value of e

  3. (c) constant: get values of constants

  4. (sm) e(pr): get value of e (in constant)

    pr: the precision, not more than 100

  5. (sm) pi(pr): get value of pi (in constant)

    pr: the precision, not more than 100

Random -

  1. (f) rint(__i, __j, __n, s): generate a random integer

    __i: minimum integer

    __j: maximum integer

    __n: number of numbers

    s: seed (positive integer

  2. (o) rdeciml(__a, __b, __pr): generate a random decimal

    __a,__b: range extremities

    __pr: precision

  3. (f) random(__n, __s): generate random numbers (in rdeciml)

    __n: number of random numbers to generate

    __s: seed for generating random numbers if wanted

  4. (f) cgpr(__pr): change precision for random numbers (in rdeciml)

Decimal Function -

  1. (f) deciml(__a, __pr): return a Decimal object

    __a: number to convert to Decimal object

    __pr: desired precision

Arithmatic Operations -

  1. (c) algbra: primitive arithmatic operations

  2. (sm): add: add given numbers (in algbra)

    *__a: arbitrary number of numbers

    pr: desired precision

  3. (sm): sub: subtract given numbers (in algbra)

    *__a: arbitrary number of numbers

    pr: desired precision

  4. (sm): mul: multiply given numbers (in algbra)

    *__a: arbitrary number of numbers

    pr: desired precision

  5. (sm): div: divide given numbers (in algbra)

    __a: numerator of division

    __b: denominator of division

    __pr: desired precision

  6. (cm): log: logarithmic given numbers (in algbra)

    __a: number to operate

    __b: base of the log

    __pr: desired precision

  7. (cm): pwr: exponent from given numbers (in algbra)

    __a: number to operate

    __b: power

    __pr: desired precision

  8. (c) galgbra: arithmatic operations using lists

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

deciml-0.0.8.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

deciml-0.0.8-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file deciml-0.0.8.tar.gz.

File metadata

  • Download URL: deciml-0.0.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for deciml-0.0.8.tar.gz
Algorithm Hash digest
SHA256 7237305a589e3e7fd8f386b0ec6dbf3bf01884760f2411a0e22648432b390016
MD5 a7052514eb0e36c8dcf14f48626c4d7e
BLAKE2b-256 a6a727be6d198a817e4fa190663215da16ec36a8b38b9aaef51ea3e95c2fa719

See more details on using hashes here.

File details

Details for the file deciml-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: deciml-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for deciml-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e4abfdb01b97446e4b6cf959c50f696a889b39bd8bea21b1678a86ec30080164
MD5 8595022f67fd952cfc6d047b43b99f4f
BLAKE2b-256 c6b52e030e067fb3f30dc8befa16d3f705f3283f5175ed10e07c3f0fd8623ac1

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