RUA!
This commit is contained in:
parent
f184a8a0ff
commit
55aab79f55
@ -12,6 +12,6 @@
|
||||
}
|
||||
},
|
||||
"basic_number": {
|
||||
"G" : ["6.67", "-11", ["N", "m", "m"], ["kg", "kg"]]
|
||||
"G" : [6.67, -11, ["N", "m", "m"], ["kg", "kg"]]
|
||||
}
|
||||
}
|
@ -15,7 +15,7 @@ class Orbit_demo(threading.Thread):
|
||||
# father class __init__()
|
||||
threading.Thread.__init__(self)
|
||||
# dic
|
||||
self.ship_info = {}
|
||||
self.ship_info = {"mass": [1, 5, ["kg"], []],}
|
||||
self.planet_system = {"Solar System": {"planets": {"smearth": {"description": "", "gravity": 9.81, "radius": 63710000, "map_color": [103, 157, 255]}}}}
|
||||
self.main_ship_parts = {}
|
||||
self.this_planet_info = {}
|
||||
|
@ -23,7 +23,7 @@ def S_N_M(A, B): # stand for Scientific notation multiple
|
||||
"""
|
||||
formats:
|
||||
A & B list format:docs.basic_config.json:basic_number"""
|
||||
C = [float(A[0] * B[0]), int(A[1] + B[1])]
|
||||
C = [A[0] * B[0], int(A[1] + B[1])]
|
||||
S_C_float_check(C)
|
||||
Unit1, Unit2 = A[2] + B[2], A[3] + B[3]
|
||||
if Unit1 == None:
|
||||
|
Loading…
Reference in New Issue
Block a user