I want to write a function which inputs two variables a, b and which returns a/b as a float irrespective of the types of a and b. Right now I'm doing this as:

```
def f(a, b):
    return float(a)/float(b)

```

Is there a better way to do this?