@staticmethod
def div(p, q):
    '\n        ``p / q`` returning the correct infinity instead of\n        raising ZeroDivisionError.\n        '
    from math import copysign
    if (q != 0.0):
        return (p / q)
    elif (p == 0.0):
        return (p / q)
    elif (copysign(1, q) > 0):
        return copysign(inf, p)
    else:
        return copysign(inf, (- p))
``p / q`` returning the correct infinity instead of
raising ZeroDivisionError.
@staticmethod
def div(p, q):
    '\n        ``p / q`` returning the correct infinity instead of\n        raising ZeroDivisionError.\n        '
    from math import copysign
    if (q != 0.0):
        return (p / q)
    elif (p == 0.0):
        return (p / q)
    elif (copysign(1, q) > 0):
        return copysign(inf, p)
    else:
        return copysign(inf, (- p))