def METHOD_NAME(self, v1, v2):
    floatTypes = [ 'http://www.w3.org/2001/XMLSchema#float','http://www.w3.org/2001/XMLSchema#decimal','http://www.w3.org/2001/XMLSchema#double']
    integerTypes = ['http://www.w3.org/2001/XMLSchema#integer']
    if v1.datatype in floatTypes and v2.datatype in integerTypes:
        return False
    elif v2.datatype in floatTypes and v1.datatype in integerTypes:
        return False
    else:
        return True