Permit float amp values in power calcs
This commit is contained in:
@@ -34,7 +34,7 @@ else:
|
||||
|
||||
print(f"Voltage Drop (per ampere per metre): {drop}mV/A/m")
|
||||
|
||||
assumed_load = int(sys.argv[2])
|
||||
assumed_load = float(sys.argv[2])
|
||||
length = int(sys.argv[3])
|
||||
|
||||
total_drop = drop * assumed_load * length / 1000
|
||||
|
||||
Reference in New Issue
Block a user