We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码如下: func Test_oj(t *testing.T) { num1 := 1.56930
m := map[string]interface{}{ "data": num1, } jsonStr, _ := json.Marshal(m) var obj interface{} json.Unmarshal([]byte(jsonStr), &obj) fmt.Println(obj)
}
期望 obj[data] 得到的数是 1.56930,但是实际的到的是 1.5693000000000001,升级ojg到最新版本也有这个问题。
No response
请按照上面代码进行debug查看
The text was updated successfully, but these errors were encountered:
请将 github.com/ohler55/ojg 升级到 v1.25.1 版本来解决这个问题
Sorry, something went wrong.
十分感谢!!
Dot-Liu
No branches or pull requests
Current Behavior
代码如下:
func Test_oj(t *testing.T) {
num1 := 1.56930
}
Expected Behavior
期望 obj[data] 得到的数是 1.56930,但是实际的到的是 1.5693000000000001,升级ojg到最新版本也有这个问题。
Error Logs
No response
Steps to Reproduce
请按照上面代码进行debug查看
Environment
The text was updated successfully, but these errors were encountered: