convert returned value to a float