private String formatForPlugin(String valueToRender) {
        if (valueToRender == null) {
            return null;
        }
        if (isValueBlank(valueToRender)) {
            return "";
        }
        else {
            try {
                BigDecimal objectToRender = new BigDecimal(valueToRender);
                return formatForPlugin(objectToRender);
            }
            catch (Exception e) {
                throw new IllegalArgumentException("Error converting  [" + valueToRender + "] to a decimal value;", e);
            }
        }
    }
Coerce the provided value to the range defined by the effective minimum and maximum numbers.
@param value the value to render
@param effectiveMinValue the effective minimum value
@param effectiveMaxValue the effective maximum number
@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