def max_num_decims(num1, num2):
    
    """
    Given two numbers 'num1' and 'num2', returns 
    the maximum number of decimals found in them.
    """
    
    num_max_decs = 0
    
    if ("." in num1) or ("." in num2):
                
        if ("." in num1) and ("." not in num2):
            
            num1A, num1B = num1.split(".")
            num_max_decs = len(num1B)
                      
        elif ("." in num2) and ("." not in num1):
            
            num2A, num2B = num2.split(".")
            num_max_decs = len(num2B)
        
        elif ("." in num1) and ("." in num2):
            
            num1A, num1B = num1.split(".")
            num2A, num2B = num2.split(".")
            
            num_max_decs = max(len(num1B), len(num2B))
    
    return num_max_decs