import re


def isDecimalPrecision2(num):
    """assumes num is a float or a string representing a float
    returns a boolean, True if num is a decial with a precision of 2,
    else False"""
    num = str(num)
    pattern = "\d+\.(\d+)"
    result = re.match(pattern, num)
    if result:
        decimal_len = len(result.group(1))
        if decimal_len == 2:
            return True
        else:
            return False
    else:
        return False