/src/main/java/org/htmlunit/html/HtmlRangeInput.java
int fact = ( int) ( value / step) ; value = value - min;
value = value - min; int fact = ( int ) ( value / step ) ;
else { if (value < min) { value = min; } } final double step = getStepNumeric(); <extra_id_0> final double rest = value % step; if (rest >= step / 2) { fact++; } value = min + step * fact; if (!Double.isInfinite(value) && value == Math.floor(value)) {