Skip to content

Commit

Permalink
Update module2_struct.go
Browse files Browse the repository at this point in the history
fix double precision ,module double to string
  • Loading branch information
heyone-top authored Jun 16, 2024
1 parent aaeedea commit 4a068fb
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("%g", value)
}

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

0 comments on commit 4a068fb

Please sign in to comment.