Skip to content

slider decimal point #2511

@phmello

Description

@phmello

Bug, feature request, or proposal:

Bug

What is the expected behavior?

when the step attribute is set to 0.1 it should increment the value accordingly
13.9
23.2

What is the current behavior?

the component is displaying huge fractions such as
13.900000000000006
23.299999999999997

What are the steps to reproduce?

<md-slider [min]="-50" [max]="50" [step]="0.1" thumbLabel [(ngModel)]="annualReturn">

Providing a Plunker (or similar) is the best way to get the team to see your issue.
http://plnkr.co/edit/oeToNQlCIT3WZebLDAg5?p=preview

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, browsers are affected?

"@angular/material": "^2.0.0-alpha.11-3",

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions