def roundodd(num):
    """
    Round the given number to the nearest odd number.
    """
    rounded = round(num)
    if rounded % 2 != 0:
        return rounded
    else:
        if rounded > num:
            return rounded - 1
        else:
            return rounded + 1