DEBUG FINISH!
This commit is contained in:
parent
61a80c5e24
commit
7acfbf7a17
14
libs/P_C.py
14
libs/P_C.py
@ -13,8 +13,8 @@ def P_C_M(A, B): # stand for Physics Calculation multiple
|
|||||||
A & B list format:docs.basic_config.json:basic_number
|
A & B list format:docs.basic_config.json:basic_number
|
||||||
"""
|
"""
|
||||||
C = [0.0, 1, [], []]
|
C = [0.0, 1, [], []]
|
||||||
Float = A[0] * B[0]
|
Float = float(A[0] * B[0])
|
||||||
Int = A[1] + B[1]
|
Int = int(A[1] + B[1])
|
||||||
if Float >= 10:
|
if Float >= 10:
|
||||||
Float /= 10
|
Float /= 10
|
||||||
Int += 1
|
Int += 1
|
||||||
@ -22,8 +22,7 @@ def P_C_M(A, B): # stand for Physics Calculation multiple
|
|||||||
Float *= 10
|
Float *= 10
|
||||||
Int -= 1
|
Int -= 1
|
||||||
else:
|
else:
|
||||||
Float = float(Float)
|
pass
|
||||||
Int = int(Int)
|
|
||||||
Unit1 = [].append(A[2].extend(B[2]))
|
Unit1 = [].append(A[2].extend(B[2]))
|
||||||
Unit2 = []
|
Unit2 = []
|
||||||
for unit in B[3]:
|
for unit in B[3]:
|
||||||
@ -44,8 +43,8 @@ def P_C_D(A, B): # stand for Physics Calculation divide
|
|||||||
A & B list format:docs.basic_config.json:basic_number
|
A & B list format:docs.basic_config.json:basic_number
|
||||||
"""
|
"""
|
||||||
C = [0.0, 1, [], []]
|
C = [0.0, 1, [], []]
|
||||||
Float = A[0] / B[0]
|
Float = float(A[0] / B[0])
|
||||||
Int = A[1] - B[1]
|
Int = int(A[1] - B[1])
|
||||||
if Float >= 10:
|
if Float >= 10:
|
||||||
Float /= 10
|
Float /= 10
|
||||||
Int += 1
|
Int += 1
|
||||||
@ -53,8 +52,7 @@ def P_C_D(A, B): # stand for Physics Calculation divide
|
|||||||
Float *= 10
|
Float *= 10
|
||||||
Int -= 1
|
Int -= 1
|
||||||
else:
|
else:
|
||||||
Float = float(Float)
|
pass
|
||||||
Int = int(Int)
|
|
||||||
Unit1 = A[2].extend(B[3])
|
Unit1 = A[2].extend(B[3])
|
||||||
Unit2 = []
|
Unit2 = []
|
||||||
for unit in B[2]:
|
for unit in B[2]:
|
||||||
|
Loading…
Reference in New Issue
Block a user