(value=None, min_value=None, max_value=None)
Validate that value is a valid float.

    If min_value or max_value are provided, range checks are performed.
Validate that value is a valid float.
Validate that value is a valid float .
def is_number(value=None, min_value=None, max_value=None):
    """
    Validate that value is a valid float.

    If min_value or max_value are provided, range checks are performed.
    """

    def validator(num_value):
        return _numeric_validator(num_value=num_value, numeric_type=float, min_value=min_value, max_value=max_value)

    if min_value is None and max_value is None:
        return validator(value)
    else:
        return validator
def is_number ( value = None , min_value = None , max_value = None ) : def validator ( num_value ) : return _numeric_validator ( num_value = num_value , numeric_type = float , min_value = min_value , max_value = max_value ) if min_value is None and max_value is None : return validator ( value ) else : return validator