def float_div(num1, num2):

    """Function:  float_div

    Description:  Takes two numbers and does floating division.  Returns zero
        if the divisor is zero.

    Arguments:
        (input) num1 number -> First number.
        (input) num2 number -> Second number.
        (output) Return results of division or 0.

    """

    try:
        return float(num1) / num2

    except ZeroDivisionError:
        return 0