The second float conversion is unnecessary, as are both decimal points.  The only purpose of the float conversion is to trigger an error if, for example,
```python
arg = np.array(['a', 'b', 'c'])
```
Contrary to the comment, it raises a ValueError; but that serves the purpose just as well.