Search code examples
javascriptroundingnouislider

noUiSlider long number rounding error


I initialize noUiSlider with data

var settings = {
  connect: "lower",
  range: {
    max: 87654567890,
    min: 0
  },
  start: 30679098762,
  step: 1
}

after initialization slider value is 30679098761.50 why?

Demo here - https://jsfiddle.net/serGlazkov/yrppsmvo/5/


Solution

  • this is a bug noUiSlider, fixed in 8.4.0 version