Default To value set wrong when max value set in floating point.
See original GitHub issuei 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:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😉
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.