This fixes #7876.  It now correctly takes in a float.