private String determineMinimumFromType(FacesContext context, InputNumber component) {
        Object value = component.getValue();
        if (value != null) {
            if (value instanceof Long) {
                return Long.toString(Long.MIN_VALUE);
            }
            else if (value instanceof Integer) {
                return Integer.toString(Integer.MIN_VALUE);
            }
            else if (value instanceof Double) {
                return Double.toString(-Double.MAX_VALUE);
            }
            else if (value instanceof Short) {
                return Short.toString(Short.MIN_VALUE);
            }
            else if (value instanceof Byte) {
                return Byte.toString(Byte.MIN_VALUE);
            }
            else if (value instanceof Float) {
                return Float.toString(-Float.MAX_VALUE);
            }
        }

        Class<?> type = getTypeFromValueExpression(context, component);
        if (type != null) {
            if (type == Long.class || type == long.class) {
                return Long.toString(Long.MIN_VALUE);
            }
            else if (type == Integer.class || type == int.class) {
                return Integer.toString(Integer.MIN_VALUE);
            }
            else if (type == Double.class || type == double.class) {
                return Double.toString(-Double.MAX_VALUE);
            }
            else if (type == Short.class || type == short.class) {
                return Short.toString(Short.MIN_VALUE);
            }
            else if (type == Byte.class || type == byte.class) {
                return Byte.toString(Byte.MIN_VALUE);
            }
            else if (type == Float.class || type == float.class) {
                return Float.toString(-Float.MAX_VALUE);
            }
        }

        return null;
    }
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