Skip to content
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
@luozhihua

Description

@luozhihua
<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

Metadata

Metadata

Assignees

Labels

for: internal contributorThe team will address this issue and community PRs are not requested.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions