Added float cast because somehow the endpoints checking let an integer value through as an integer even though it was clearly cast to a float.