Extension of decimal library.
Project description
variable - v
function - f
staticmethod - sm
classmethod - cm
class - s
object - o
Precision -
-
(v) __DecimalPrecision: variable used for precision
-
(f) setpr(__p): changes the precision __pr: the new precision, changes __DecimalPrecision
-
(f) getpr(): get the precision
Note - Precision is integer
Constant -
-
(v) __Pi: variable that stores the value of pi
-
(v) __EulersNumber: variable that stores the value of e
-
(c) constant: get values of constants
-
(sm) e(pr): get value of e (in constant)
pr: the precision, not more than 100
-
(sm) pi(pr): get value of pi (in constant)
pr: the precision, not more than 100
Random -
-
(f) rint(__i, __j, __n, s): generate a random integer
__i: minimum integer
__j: maximum integer
__n: number of numbers
s: seed (positive integer
-
(o) rdeciml(__a, __b, __pr): generate a random decimal
__a,__b: range extremities
__pr: precision
-
(f) random(__n, __s): generate random numbers (in rdeciml)
__n: number of random numbers to generate
__s: seed for generating random numbers if wanted
-
(f) cgpr(__pr): change precision for random numbers (in rdeciml)
Decimal Function -
-
(f) deciml(__a, __pr): return a Decimal object
__a: number to convert to Decimal object
__pr: desired precision
Arithmatic Operations -
-
(c) algbra: primitive arithmatic operations
-
(sm): add: add given numbers (in algbra)
*__a: arbitrary number of numbers
pr: desired precision
-
(sm): sub: subtract given numbers (in algbra)
*__a: arbitrary number of numbers
pr: desired precision
-
(sm): mul: multiply given numbers (in algbra)
*__a: arbitrary number of numbers
pr: desired precision
-
(sm): div: divide given numbers (in algbra)
__a: numerator of division
__b: denominator of division
__pr: desired precision
-
(cm): log: logarithmic given numbers (in algbra)
__a: number to operate
__b: base of the log
__pr: desired precision
-
(cm): pwr: exponent from given numbers (in algbra)
__a: number to operate
__b: power
__pr: desired precision
-
(c) galgbra: arithmatic operations using lists
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deciml-0.0.11.tar.gz.
File metadata
- Download URL: deciml-0.0.11.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b9a0dd527dd6dcd0063f16ea7381911f9ca89e3fa7940124203662785929cbb
|
|
| MD5 |
d7c2820e73aff628f17abfba7f9de7e3
|
|
| BLAKE2b-256 |
f4c5bebe8949ed907158e726050dd494eaaf541823083760066b520398c251b4
|
File details
Details for the file deciml-0.0.11-py3-none-any.whl.
File metadata
- Download URL: deciml-0.0.11-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b41cde6cd9800692082cd8149940b195f15c5185d99ecd92d911b5aacc2844c1
|
|
| MD5 |
32d6e8ccf1728f9059ea0b2c075c5df0
|
|
| BLAKE2b-256 |
9a2232ce0dd3ddd3027b14ac276ab9b3dc60837b3fb3ee584b0a16cbcae4e461
|