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型时,会出现精度丢失问题 #336

Open
Naivee opened this issue Jun 2, 2023 · 1 comment

Comments

@Naivee
Copy link

Naivee commented Jun 2, 2023

当使用 setRange(float min, float max, float step) 这个方法时,会出现经度丢失问题,希望可以修改一下float型数据计算方法。谢谢。
for (float i = minValue; i <= maxValue; i = i + step) { data.add(i); }
这里简单的使用“+”会出问题
1685705084315

@liyujiang-gzu
Copy link
Member

可以暂时配合“setFormatter”来格式化展示的条目

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