From 7ce8b8a75c16cfeb6d060103e8d738e71db19b01 Mon Sep 17 00:00:00 2001 From: Kang Dooho Date: Tue, 29 Aug 2023 11:01:15 +0900 Subject: [PATCH] [APIS-967] [regression-rev] Changed the way the float type removes trailing zeroes --- src/cci/cci_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cci/cci_util.c b/src/cci/cci_util.c index 8f59f50..06d8d5b 100644 --- a/src/cci/cci_util.c +++ b/src/cci/cci_util.c @@ -838,7 +838,7 @@ ut_float_to_str_with_remove_trailingzeros (float value, char *str, int size) char *dot, *exp, *sp = return_str + 1; - snprintf (float_str, sizeof (float_str), "%g", fabsf (value)); + snprintf (float_str, sizeof (float_str), "%.7g", fabsf (value)); dot = strchr (float_str, '.'); exp = strchr (float_str, 'e');