question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default To value set wrong when max value set in floating point.

See original GitHub issue

i set a default start to value is 2000 but noUiSlider set 1980 . i don’t understand why default value set wrong.


noUiSlider.create(marginSlider, {
  start:[30,2000],
  step:50,
  connect: false,
  range:{
    'min':30,
    'max':2000.1
  }
});

Problem Example https://jsfiddle.net/0rohoeLg/319/

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Januszplcommented, Nov 9, 2017

Max value is 2000.1. You can move the handler to the right and you will get it 😉 You defined step: 50 and min and start as 30. So when moving left handler you can set values as 30, 80… etc… and then (39th step) will be 1980 😉

0reactions
github-actions[bot]commented, May 31, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrong C++ long double min/max values using numeric_limits ...
Quote from the standard (§3.9.1, lit 8):. There are three floating point types: float,double, and long double.The type double provides at least ...
Read more >
15. Floating Point Arithmetic: Issues and Limitations — Python ...
Floating -point numbers are represented in computer hardware as base 2 (binary) fractions. For example, the decimal fraction 0.125 has value 1/10 +...
Read more >
Floating-point arithmetic may give inaccurate result in Excel
This article discusses how Microsoft Excel stores and calculates floating-point numbers. This may affect the results of some numbers or ...
Read more >
What Every Computer Scientist Should Know About Floating ...
Setting = ( /2) -p to the largest of the bounds in (2) above, we can say that when a real number is...
Read more >
Language Guide (proto3) | Protocol Buffers - Google Developers
Defining A Message Type; Scalar Value Types; Default Values; Enumerations ... the field is set, and contains a value that was explicitly set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found