Preventing an error message by casting an integer (0) to the requested float.