From 4a068fb58334d039fd957bb602c64926520e3c13 Mon Sep 17 00:00:00 2001 From: heyone-top <979034501@qq.com> Date: Sun, 16 Jun 2024 19:23:58 +0800 Subject: [PATCH] Update module2_struct.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix double precision ,module double to string --- internal/rdb/structure/module2_struct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rdb/structure/module2_struct.go b/internal/rdb/structure/module2_struct.go index c456074b..8acabe25 100644 --- a/internal/rdb/structure/module2_struct.go +++ b/internal/rdb/structure/module2_struct.go @@ -50,7 +50,7 @@ func ReadModuleDouble(rd io.Reader) string { log.Panicf("Unknown module double encode type") } value := ReadDouble(rd) - return fmt.Sprintf("%f", value) + return fmt.Sprintf("%g", value) } func ReadModuleString(rd io.Reader) string {