def percent_change(before, after):
    """
    Return percent change increase or decrease between two numbers.

    >>> percent_change(100, 110)
    0.1
    """
    try:
        return (1.0 * after - before) / before
    except ZeroDivisionError:
        return float('nan')
