Skip to content

Commit 10e2003

Browse files
authored
fix double precision ,module bloomfilter double to string (#830)
* Update module2_struct.go fix double precision ,module double to string * Update module2_struct.go update float64 precision
1 parent 5e5133d commit 10e2003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/rdb/structure/module2_struct.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func ReadModuleDouble(rd io.Reader) string {
5050
log.Panicf("Unknown module double encode type")
5151
}
5252
value := ReadDouble(rd)
53-
return fmt.Sprintf("%f", value)
53+
return fmt.Sprintf("%.15f", value)
5454
}
5555

5656
func ReadModuleString(rd io.Reader) string {

0 commit comments

Comments
 (0)