def robust_divide(a,b):
    """Handles 0 division and conversion to floats automatically
    """
    a = float(a)
    b = float(b)
    if b == 0:
        return float('NaN')
    else:
        return a/b