abstract-math 0.0.0.1__tar.gz
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.
- abstract_math-0.0.0.1/PKG-INFO +14 -0
- abstract_math-0.0.0.1/README.md +1 -0
- abstract_math-0.0.0.1/setup.cfg +4 -0
- abstract_math-0.0.0.1/setup.py +26 -0
- abstract_math-0.0.0.1/src/abstract_math/__init__.py +1 -0
- abstract_math-0.0.0.1/src/abstract_math/safe_math.py +33 -0
- abstract_math-0.0.0.1/src/abstract_math.egg-info/PKG-INFO +14 -0
- abstract_math-0.0.0.1/src/abstract_math.egg-info/SOURCES.txt +8 -0
- abstract_math-0.0.0.1/src/abstract_math.egg-info/dependency_links.txt +1 -0
- abstract_math-0.0.0.1/src/abstract_math.egg-info/top_level.txt +1 -0
|
@@ -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 @@
|
|
|
1
|
+
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,26 @@
|
|
|
1
|
+
from time import time
|
|
2
|
+
import setuptools
|
|
3
|
+
with open("README.md", "r", encoding="utf-8") as fh:
|
|
4
|
+
long_description = fh.read()
|
|
5
|
+
setuptools.setup(
|
|
6
|
+
name='abstract_math',
|
|
7
|
+
version='0.0.0.01',
|
|
8
|
+
author='putkoff',
|
|
9
|
+
author_email='partners@abstractendeavors.com',
|
|
10
|
+
description="",
|
|
11
|
+
long_description=long_description,
|
|
12
|
+
long_description_content_type='text/markdown',
|
|
13
|
+
classifiers=[
|
|
14
|
+
'Development Status :: 3 - Alpha',
|
|
15
|
+
'Intended Audience :: Developers',
|
|
16
|
+
'License :: OSI Approved :: MIT License',
|
|
17
|
+
'Programming Language :: Python :: 3',
|
|
18
|
+
'Programming Language :: Python :: 3.11',
|
|
19
|
+
],
|
|
20
|
+
install_requires=[],
|
|
21
|
+
package_dir={"": "src"},
|
|
22
|
+
packages=setuptools.find_packages(where="src"),
|
|
23
|
+
python_requires=">=3.6",
|
|
24
|
+
# Add this line to include wheel format in your distribution
|
|
25
|
+
setup_requires=['wheel'],
|
|
26
|
+
)
|
|
@@ -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 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
abstract_math
|