def sec0to10(val):
    """
    Converts the system security values into values between 0 and 10
    """
    retval = val * 10

    if retval < 0:
        retval = 0
    elif retval > 10:
        retval = 10
    else:
        retval = int(round(retval))

    return retval