Skip to content
New issue

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

Float类型精度问题 #275

Open
shensr-s opened this issue Mar 6, 2023 · 1 comment
Open

Float类型精度问题 #275

shensr-s opened this issue Mar 6, 2023 · 1 comment

Comments

@shensr-s
Copy link

shensr-s commented Mar 6, 2023

com.tencentcloudapi.cat.v20180409.models.Field#value字段为Float类型,接受时间戳数据存在精度丢失。希望能够解决

@sesky4
Copy link
Contributor

sesky4 commented Mar 21, 2023

感谢反馈,的确存在这样的问题,但是将代码修改为double可能会导致其他用户的兼容问题。

一种本地的解决方式是将 com.tencentcloudapi.cat.v20180409.models.Field 类型复制到自己仓库中,然后将float修改为double,然后通过 CommonClient 调用接口,CommonClient 示例参考

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

No branches or pull requests

2 participants