private String getDecimalPlaces(boolean isIntegral, InputNumber component) {
        if (component.getDecimalPlaces() != null) {
            return component.getDecimalPlaces();
        }
        if (isIntegral) {
            return "0";
        }
        return "2";
    }
Determines the number of decimal places to use.
First sees if a value is set and return that.
Else, if this is an integer type number then default to 0
decimal places if none was declared else default to 2.
@param isIntegral flag whether the (expected) value is integral
@param component the component
@return the number of decimal places to use
primefaces/src/main/java/org/primefaces/component/inputnumber/InputNumberRenderer.java