Skip to content

keep float precision in ExplainSQL#6495

Merged
jinzhu merged 1 commit intogo-gorm:masterfrom
kumakichi:explain_sql
Aug 4, 2023
Merged

keep float precision in ExplainSQL#6495
jinzhu merged 1 commit intogo-gorm:masterfrom
kumakichi:explain_sql

Conversation

@kumakichi
Copy link
Copy Markdown
Contributor

@kumakichi kumakichi commented Aug 2, 2023

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

ExplainSQL's handling of floating point numbers, which were previously formatted like .6f, this PR uses strconv.FormatFloat to format them to preserve precision

User Case Description

An arbitrary floating point number with more than 6 decimal places, for example: 0.1753607109

@jinzhu jinzhu merged commit 193c454 into go-gorm:master Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants