Added a method for returning a float value.