You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main issue arises from the type conversion in types.go at line 396. The math.Float32frombits function returns a 32-bit number, which is then forcibly converted to 64-bit.
Here is a Golang example:
var v float32 = 1.232
fmt.Println(fmt.Sprintln("%+v", float64(v)))
Problem reproduction:
If necessary, I can submit a PR to fix this.
The text was updated successfully, but these errors were encountered:
I have encountered a problem where my data field is of the real type and has a value of 1.232, leading to precision issues. The code is as follows:
Create SQL:
golang code
The execution result is:
The main issue arises from the type conversion in types.go at line 396. The math.Float32frombits function returns a 32-bit number, which is then forcibly converted to 64-bit.
Here is a Golang example:
Problem reproduction:
If necessary, I can submit a PR to fix this.
The text was updated successfully, but these errors were encountered: