Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

md-slider doesn't play well with decimal steps #3132

Closed
jelbourn opened this issue Jun 5, 2015 · 1 comment
Closed

md-slider doesn't play well with decimal steps #3132

jelbourn opened this issue Jun 5, 2015 · 1 comment
Labels
for: internal contributor The team will address this issue and community PRs are not requested.

Comments

@jelbourn
Copy link
Member

jelbourn commented Jun 5, 2015

Due to floating point arithmetic imprecision, the slider may end up displaying ugly numbers:
Slider showing 0.70000000000001 value

The fix for this is to use Number.prototype.toFixed, and either detecting or being given the number of digits to format to.

@jelbourn jelbourn added the for: internal contributor The team will address this issue and community PRs are not requested. label Jun 5, 2015
@jelbourn
Copy link
Member Author

jelbourn commented Jun 5, 2015

Dupe of #2015

@jelbourn jelbourn closed this as completed Jun 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
for: internal contributor The team will address this issue and community PRs are not requested.
Projects
None yet
Development

No branches or pull requests

1 participant