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

double类型字段,值中位数太多 #4610

Closed
wzf55555 opened this issue Dec 17, 2020 · 2 comments
Closed

double类型字段,值中位数太多 #4610

wzf55555 opened this issue Dec 17, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@wzf55555
Copy link

有没有函数可以保留几位小数返回给服务器。
image
页面显示位数太多。
数据量太大,java代码中逐条修改保留位数返回页面,影响效率。

@wzf55555 wzf55555 added the bug Something isn't working label Dec 17, 2020
@sangshuduo sangshuduo added enhancement New feature or request and removed bug Something isn't working labels Dec 17, 2020
@localvar
Copy link
Contributor

显示多少位小数可以在将 double 转成字符串时进行控制,是应用程序的责任,与 tdengine 无关。

@wzf55555
Copy link
Author

前面说过了,数据量很大,就为了保留小数这个字段就要把数据遍历一遍,消耗太大。有个类似于mysql一样的round函数可以直接保留。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants