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
Labels
for: internal contributor
The team will address this issue and community PRs are not requested.
Due to floating point arithmetic imprecision, the slider may end up displaying ugly numbers:
The fix for this is to use
Number.prototype.toFixed
, and either detecting or being given the number of digits to format to.The text was updated successfully, but these errors were encountered: