private BigDecimal coerceValueInRange(FacesContext context, BigDecimal value, InputNumber component) {
        return coerceValueInRange(value, getEffectiveMinValue(context, component), getEffectiveMaxValue(context, component));
    }
Coerce the provided value to the range defined by the effective minimum and maximum numbers.
@param value the value to render
@param component the component for which the minValue and maxValue properties define the range
@return the value if inside the range, or else the nearest boundary that is still inside the range
primefaces/src/main/java/org/primefaces/component/inputnumber/InputNumberRenderer.java