def input_decimal(value):
    """
    Function to make sure a value to a decimal value.

    :param value: numeric value or ``None``
    :return: value as ``Decimal`` or ``None``
    """
    if value is None:
        return None
    else:
        try:
            return float(value)
        except:
            raise TypeError
