Skip to content
This repository has been 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
luozhihua opened this issue Mar 24, 2015 · 1 comment
Assignees
Labels
for: internal contributor The team will address this issue and community PRs are not requested.
Milestone

Comments

@luozhihua
Copy link

<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

@luozhihua luozhihua changed the title mdSlider if set step="0.1", when drag the slider the value will be a long float number mdSlider if set step="0.1", when slide the slider it's value will be a long float number Mar 24, 2015
@ThomasBurleson ThomasBurleson added the for: internal contributor The team will address this issue and community PRs are not requested. label Apr 24, 2015
@ThomasBurleson ThomasBurleson modified the milestone: 0.10.0 Apr 28, 2015
kennethcachia added a commit to kennethcachia/material that referenced this issue May 1, 2015
@ajoslin ajoslin added the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label May 1, 2015
@mprentic-harris
Copy link
Contributor

We're seeing this as well with 0.05 step increments. Glad to see that a PR is already in progress. Thank you!

@ThomasBurleson ThomasBurleson removed the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label Jan 19, 2016
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

Successfully merging a pull request may close this issue.

5 participants