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

步进器 小数计算精度不准确 #196

Closed
xieyanmei opened this issue Dec 28, 2018 · 1 comment
Closed

步进器 小数计算精度不准确 #196

xieyanmei opened this issue Dec 28, 2018 · 1 comment

Comments

@xieyanmei
Copy link

Describe the bug
步进器的step设置为小数的时候,结果不准确

To Reproduce
Steps to reproduce the behavior:

  1. 设置step为0.01
  2. 设置步进器value为4
  3. 点击减号
  4. 第二次点击的时候 得到的值为3.99-0.01=3.9800000000000004

Expected behavior
3.99-0.01=3.98

@Phieo Phieo mentioned this issue Jan 4, 2019
@Phieo
Copy link
Member

Phieo commented Jan 4, 2019

0.4.12已经修复。

@Phieo Phieo closed this as completed Jan 8, 2019
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