public double getTemperature( TempType type )
	{
		double t = temperature;
		
		//convert to C
		if( type == TempType.CELSIUS )
			t -= 273.15;
		//convert to celsius
		else if( type == TempType.FAHRENHEIT )
			t = 1.8*(t - 273.0) + 32.0;
		
		return t;
	}