/// <summary> /// The fahrenheit to gas conversion. /// </summary> /// <param name="firstTemp"> The temperature to convert. </param> /// <exception cref="T:System.ArgumentOutOfRangeException"> Temp too low or too high for gas mark! </exception> /// <returns> /// The converted temperature. /// </returns> public static double FahrenheitToGas(double firstTemp) { var celsiusTemp = FahrenheitToCelsius(firstTemp); var gasTemp = CelsiusConverter.CelsiusToGas(celsiusTemp); return(gasTemp); }
/// <summary> /// The gas to fahrenheit conversion. /// </summary> /// <param name="firstTemp"> The temperature to convert. </param> /// <exception cref="T:System.ArgumentOutOfRangeException"> Temp too low or too high for gas mark! </exception> /// <returns> /// The converted temperature. /// </returns> public static double GasToFahrenheit(double firstTemp) { var celsiusTemp = GasToCelsius(firstTemp); var fahrenheitTemp = CelsiusConverter.CelsiusToFahrenheit(celsiusTemp); return(fahrenheitTemp); }
/// <summary> /// The fahrenheit to kelvin conversion. /// </summary> /// <param name="firstTemp"> The temperature to convert. </param> /// <exception cref="T:System.ArgumentOutOfRangeException"> If calculated value is beyond the limits of the type. </exception> /// <returns> /// The converted temperature. /// </returns> public static double FahrenheitToKelvin(double firstTemp) { var celsiusTemp = FahrenheitToCelsius(firstTemp); var kelvinTemp = CelsiusConverter.CelsiusToKelvin(celsiusTemp); return(kelvinTemp); }
/// <summary> /// The gas to rankine conversion. /// </summary> /// <param name="firstTemp"> The temperature to convert. </param> /// <exception cref="T:System.ArgumentOutOfRangeException"> Temp too low or too high for gas mark! </exception> /// <returns> /// The converted temperature. /// </returns> public static double GasToRankine(double firstTemp) { var celsiusTemp = GasToCelsius(firstTemp); var rankineTemp = CelsiusConverter.CelsiusToRankine(celsiusTemp); return(rankineTemp); }