private float RoundedToCurrentTempModeOffset(float celsiusTemp)
        {
            float num = GenTemperature.CelsiusToOffset(celsiusTemp, Prefs.TemperatureMode);

            num = (float)Mathf.RoundToInt(num);
            return(GenTemperature.ConvertTemperatureOffset(num, Prefs.TemperatureMode, TemperatureDisplayMode.Celsius));
        }
 private float RoundedToCurrentTempModeOffset(float celsiusTemp)
 {
     return(GenTemperature.ConvertTemperatureOffset(Mathf.RoundToInt(GenTemperature.CelsiusToOffset(celsiusTemp, Prefs.TemperatureMode)), Prefs.TemperatureMode, TemperatureDisplayMode.Celsius));
 }