diisplay bugfix
This commit is contained in:
@@ -25,9 +25,9 @@ def convert_exp(number, digits=4):
|
||||
exp = splitted[1]
|
||||
exp_str = "10^{" + str(int(exp)) + "}"
|
||||
if float(coeff) == 1.0:
|
||||
return exp_str
|
||||
return f"${exp_str}$"
|
||||
else:
|
||||
return "{}\\times {}".format(coeff, exp_str)
|
||||
return f"${coeff}\\times {exp_str}$"
|
||||
|
||||
|
||||
def unit_str(unit, base=None, prefix="", format=" [{unit}]"):
|
||||
|
||||
Reference in New Issue
Block a user