Skip to content

Commit

Permalink
fix double precision ,module bloomfilter double to string (#830)
Browse files Browse the repository at this point in the history
* Update module2_struct.go

fix double precision ,module double to string

* Update module2_struct.go

update  float64 precision
  • Loading branch information
heyone-top authored Jun 25, 2024
1 parent 5e5133d commit 10e2003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rdb/structure/module2_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("%.15f", value)
}

func ReadModuleString(rd io.Reader) string {
Expand Down

0 comments on commit 10e2003

Please sign in to comment.