From efde17e839959b66413b3684d2d922b37caccf33 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Fri, 9 Sep 2022 18:05:43 +0300 Subject: [PATCH] i will also fix floating point significant digits --- scripts/xy_grid.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py index 4c3f0da37..f511cb4a6 100644 --- a/scripts/xy_grid.py +++ b/scripts/xy_grid.py @@ -42,10 +42,16 @@ def apply_sampler(p, x, xs): def format_value_add_label(p, opt, x): + if type(x) == float: + x = round(x, 8) + return f"{opt.label}: {x}" def format_value(p, opt, x): + if type(x) == float: + x = round(x, 8) + return x def do_nothing(p, x, xs):