You get the error because if the display value is > 100 or < -273, there is no return statement encountered, and all paths through your method must end by returning a double.

As it is, you could...