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

Decimal steps show too many decimals #38

Closed
flip111 opened this issue Oct 29, 2013 · 6 comments
Closed

Decimal steps show too many decimals #38

flip111 opened this issue Oct 29, 2013 · 6 comments
Assignees

Comments

@flip111
Copy link

flip111 commented Oct 29, 2013

ionRangeSlider options:

min: 0,
max: 100,
type: 'double',
step: 0.1,
hasGrid: false,
hideText: false

Most steps go normally. Like 0.1 0.2 ... but then some steps look like 0.30 000 000 000 000 004

I would guess there is a problem with FLOATS.

@IonDen
Copy link
Owner

IonDen commented Oct 29, 2013

Hm, i thought i fixed that... Are you shue this bug is in latest build?

@ghost ghost assigned IonDen Oct 29, 2013
@flip111
Copy link
Author

flip111 commented Oct 30, 2013

I was using version 1.7.0 Build: 123. I just upgraded to 1.8.1 and it seems fixed. Sorry for the bad bug report.

@flip111 flip111 closed this as completed Oct 30, 2013
@martinAnsty
Copy link

@flip111 did you change anything else? I'm using version 1.8.1 Build: 144 and I still see this. When using a step value of 0.01 the label occasionally shows an extra long decimal.

@IonDen
Copy link
Owner

IonDen commented Oct 30, 2013

Hi, again. Is this bug shown on 0.1 or only in 0.01, 0.001 and etc.? @martinAnsty

@flip111
Copy link
Author

flip111 commented Oct 30, 2013

Before i only tested with a scale of 1 decimal. I now tried with a scale of 2 decimals and that too seems to work fine.

@martinAnsty
Copy link

A bit more testing and the issue seems to be a result of initiating multiple sliders at the same time. If I remove the other sliders it works fine. I'll open a new issue to explain this.

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

No branches or pull requests

3 participants