0

I am trying to make a jQuery UI slider range with the following options

min: 0,
max: 100,
step: 0.01

The range works for all the values except for the last one, which becomes 99.99000000000001. I have created a jsfiddle to recreate the issue. The behavior is different for the max value 50 and 100. Any help would be really appreciated.

PS: I am using jQuery UI v1.11.2 as in WP version 4.1.1. If I use jQuery UI version 1.11.3, then the same resolves. (Example).

Swashata Ghosh
  • 988
  • 8
  • 15

1 Answers1

1

Just set max: 50.001, max: 100.001 :)

Boris Gappov
  • 2,483
  • 18
  • 23
  • Excellent. Thank you! I was looking for something like this (a hackish implementation that would just work until WP updates its library). – Swashata Ghosh Feb 27 '15 at 08:19