From c30e36ea7650eaccfae7d8031c6b58ce74bec519 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 28 Jul 2025 22:00:48 +0200 Subject: [PATCH] Store floating point number without decimal places. Co-authored-by: Hidde Beydals Signed-off-by: Felix Fontein --- stores/flatten.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/flatten.go b/stores/flatten.go index 1560b20dc..85ad63bc4 100644 --- a/stores/flatten.go +++ b/stores/flatten.go @@ -278,7 +278,7 @@ func EncodeNonStrings(m map[string]interface{}) { // The JSON unserializer treats every number as a float, so the above 'if' // never applies in that situation. if vFloat, ok := v.(float64); ok { - m["shamir_threshold"] = fmt.Sprintf("%g", vFloat) + m["shamir_threshold"] = fmt.Sprintf("%.0f", vFloat) } } }