import math


def my_round(i):
    """ Helper function for rounding.

    Keyword:
    (float) i : number to be inputted

    Returns:
    (int) f: number rounded up or down based on mathematical rounding rules
    """
    f = math.floor(i)
    return f if i - f < 0.5 else f+1