def validate_positive_float_or_zero(option, value):
 if ((value == 0) or (value == '0')):
  return 0
 return validate_positive_float(option, value)

def validate_positive_float_or_zero ( option , value ) : if ( ( value == 0 ) or ( value == '0' ) ) : return 0 return validate_positive_float ( option , value )
validates that value is 0 or a positive float .