You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed that if you try and create a Range control which has the following props <Range step={0.1} min={0.1} max={50} ... /> it will emit a The difference of max and min must be divisible by step warning.
This appears to be because (50 - 0.1) / 0.1 equals 498.99999999999994 in JavaScript, but the expression parseInt(res.toString(), 10) actually just returns 498. Most calculators would return 499 for both.
Thank you!
The text was updated successfully, but these errors were encountered:
I just noticed that if you try and create a Range control which has the following props
<Range step={0.1} min={0.1} max={50} ... />
it will emit aThe difference of max and min must be divisible by step
warning.This appears to be because
(50 - 0.1) / 0.1
equals498.99999999999994
in JavaScript, but the expressionparseInt(res.toString(), 10)
actually just returns498
. Most calculators would return499
for both.Thank you!
The text was updated successfully, but these errors were encountered: