Commit efde17e8 authored by AUTOMATIC's avatar AUTOMATIC

i will also fix floating point significant digits

parent b1707553
...@@ -42,10 +42,16 @@ def apply_sampler(p, x, xs): ...@@ -42,10 +42,16 @@ def apply_sampler(p, x, xs):
def format_value_add_label(p, opt, x): def format_value_add_label(p, opt, x):
if type(x) == float:
x = round(x, 8)
return f"{opt.label}: {x}" return f"{opt.label}: {x}"
def format_value(p, opt, x): def format_value(p, opt, x):
if type(x) == float:
x = round(x, 8)
return x return x
def do_nothing(p, x, xs): def do_nothing(p, x, xs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment