(left, right)
Check if variables are numeric and convert to highest-precision.
Check if variables are numeric and convert to highest-precision.
Check if variables are numeric and convert to highest - precision .
def match_types(left, right):
    """Check if variables are numeric and convert to highest-precision."""
    if isinstance(left, numbers.Double) or isinstance(right, numbers.Double):
        return to_double(left), to_double(right)
    elif isinstance(left, numbers.Single) or isinstance(right, numbers.Single):
        return to_single(left), to_single(right)
    elif isinstance(left, numbers.Integer) or isinstance(right, numbers.Integer):
        return to_integer(left), to_integer(right)
    elif isinstance(left, strings.String) or isinstance(right, strings.String):
        return pass_string(left), pass_string(right)
    raise TypeError('%s or %s is not of class Value.' % (type(left), type(right)))
def match_types ( left , right ) : if isinstance ( left , numbers . Double ) or isinstance ( right , numbers . Double ) : return to_double ( left ) , to_double ( right ) elif isinstance ( left , numbers . Single ) or isinstance ( right , numbers . Single ) : return to_single ( left ) , to_single ( right ) elif isinstance ( left , numbers . Integer ) or isinstance ( right , numbers . Integer ) : return to_integer ( left ) , to_integer ( right ) elif isinstance ( left , strings . String ) or isinstance ( right , strings . String ) : return pass_string ( left ) , pass_string ( right ) raise TypeError ( '%s or %s is not of class Value.' % ( type ( left ) , type ( right ) ) )