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
When setting up a slider using values that have decimals, rounding errors can occur.
See this fork of codesandbox example: https://codesandbox.io/s/react-compound-slider-svg-decimal-bug-ggr33?file=/index.js
If you set the domain from 1.4 - 1.6, with a step of 0.1, the initial max value will be 1.5999999999999999 instead of 1.6.
React-Compound-Slider: 2.5.0
React: 16.12.0
Browser: Chrome
Operating System: MacOS 10.14.6
The text was updated successfully, but these errors were encountered:
Hi @theronpatrick , did you find an elegant way to mitigate this? Having the same issue!
Sorry, something went wrong.
No branches or pull requests
Problem or feature description:
When setting up a slider using values that have decimals, rounding errors can occur.
Steps to reproduce (for problems):
See this fork of codesandbox example: https://codesandbox.io/s/react-compound-slider-svg-decimal-bug-ggr33?file=/index.js
If you set the domain from 1.4 - 1.6, with a step of 0.1, the initial max value will be 1.5999999999999999 instead of 1.6.
Versions (for problems):
React-Compound-Slider:
2.5.0
React:
16.12.0
Browser:
Chrome
Operating System:
MacOS 10.14.6
The text was updated successfully, but these errors were encountered: