abstract-math 0.0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of abstract-math might be problematic. Click here for more details.

@@ -0,0 +1 @@
1
+ from .safe_math impoort *
@@ -0,0 +1,33 @@
1
+ #math functions ------------------------------------------------------------------------------------------------------
2
+ def exponential(value,exp=9,num=-1):
3
+ return multiply_it(value,exp_it(10,exp,num))
4
+
5
+ def return_0(*args):
6
+ for arg in args:
7
+ if arg == None or not is_number(arg) or arg in [0,'0','','null',' ']:
8
+ return float(0)
9
+
10
+ def exp_it(number,integer,mul):
11
+ if return_0(number,integer,mul)==float(0):
12
+ return float(0)
13
+ return float(number)**float(float(integer)*int(mul))
14
+
15
+ def divide_it(number_1,number_2):
16
+ if return_0(number_1,number_2)==float(0):
17
+ return float(0)
18
+ return float(number_1)/float(number_2)
19
+
20
+ def multiply_it(number_1,number_2):
21
+ if return_0(number_1,number_2)==float(0):
22
+ return float(0)
23
+ return float(number_1)*float(number_2)
24
+
25
+ def add_it(number_1,number_2):
26
+ if return_0(number_1,number_2)==float(0):
27
+ return float(0)
28
+ return float(number_1)+float(number_2)
29
+
30
+ def get_percentage(owner_balance,address_balance):
31
+ retained_div = divide_it(owner_balance,address_balance)
32
+ retained_mul = multiply_it(retained_div,100)
33
+ return round(retained_mul,2)
@@ -0,0 +1,14 @@
1
+ Metadata-Version: 2.1
2
+ Name: abstract_math
3
+ Version: 0.0.0.1
4
+ Author: putkoff
5
+ Author-email: partners@abstractendeavors.com
6
+ Classifier: Development Status :: 3 - Alpha
7
+ Classifier: Intended Audience :: Developers
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+
14
+ Safe math for delicate Processes, paralell in use case to SafeMath For SmartContracts in that it is designed to circumvent fatal errors for low level MDAS.
@@ -0,0 +1,6 @@
1
+ abstract_math/__init__.py,sha256=8CLNPZ2XN-wrwnkGu9WmKgegmjiBTK8WmSrwde3Toc8,26
2
+ abstract_math/safe_math.py,sha256=9BJ4iNP5IseAbCrOpd1tcKMu0S0wZINbVD-zllZfMyg,1160
3
+ abstract_math-0.0.0.1.dist-info/METADATA,sha256=OdxsTetffxJsR5ZRo4b7s0OnIFROWzt0PkswTjWptcQ,579
4
+ abstract_math-0.0.0.1.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
5
+ abstract_math-0.0.0.1.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
6
+ abstract_math-0.0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (74.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ abstract_math