Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step Values in Decimal #71

Open
AnirbanKundu opened this issue May 7, 2015 · 6 comments
Open

Step Values in Decimal #71

AnirbanKundu opened this issue May 7, 2015 · 6 comments
Labels

Comments

@AnirbanKundu
Copy link

Hi,

Just wanted to check if the "step" values can be given in decimal. I have "step" values for few sliders ranging from 0.1 to 0.5. I set the value to 0.1 but looks like it is not working. Any idea on how to resolve this ?

Thanks,
Anirban

@danielcrisp
Copy link
Owner

I think it should work with a decimal but I've just tried your scenario and it isn't working for me either... I suspect it might be a rounding issue

@danielcrisp danielcrisp added the bug label May 8, 2015
@jdmarsh
Copy link

jdmarsh commented Jun 3, 2015

Adding the attribute decimal-places="1" to the range slider resolves this for me

@romain10009
Copy link

yes i did the same. decimal-places="1"

@cmperez
Copy link

cmperez commented Aug 28, 2015

I'm trying to create several sliders with ng-repeat. When I try to dynamically set the decimal-places (some need to be 0, some need to be 1), none of sliders step by the correct increment.

Even when I specifically set decimal-places to 0 for each slider, the step gets overwritten, defaulting to 1.

@j-cornelio
Copy link

HI THERE

how about for smaller decimal values. like from 0 - 1 ( 0.3, 0.5, 0.8 )

@ccdle12
Copy link

ccdle12 commented Sep 15, 2016

Hi,
decimal-places="1"
Will work for a range of 0 -1, so you will see 0.9 ,0.8, 0.7 etc... when moving th max slider down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants