This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
mdSlider if set step="0.1", when slide the slider it's value will be a long float number #2015
Closed
Description
<md-slider flex min="0" max="20" step="0.1" md-discrete
ng-model="component.animation.duration"
aria-label="transition-duretion" id="duration-slider">
</md-slider>
<md-input-container flex>
<input type="number" min="0" max="20" step="0.1" ng-model="component.animation.duration" aria-label="transition-duretion" aria-controls="duration-slider">
</md-input-container>
When I slide the slider, it's value will be a long float number like those:
14.700000000000001
,
0.7000000000000001
,
1.7000000000000002