def convertVote(castCode):
    """
    Parameters :
    castCode : Code for vote type cast by member
    Returns :
    Real value (0, 0.5, or 1.0) for vote cast
    """
    if int(castCode) <= 3:
        return 1.0
    elif int(castCode) <= 6:
        return 0.0
    else:
        return 0.5