small nit-pick: No need for ``float()`` here, it will auto-convert to an int or float.