Syntax
cel=Fahrenheit2Celsius(fh)
Input Parameter
fh : | | temperature in Fahrenheit |
Output Parameter
cel : | | temperature in Celsius/Kelvin |
Examples
Fahrenheit2Celsius(0) % Minimum liquid water temperature in 18th century
Fahrenheit2Celsius(98) % Body Temeprature
Fahrenheit2Celsius(250) % Steam Sterilization
Copyright 2020-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Algorithm (Workflow)
This function, Fahrenheit2Celsius
, converts temperature values from Fahrenheit to Celsius. It was developed by Tim Lueth as part of the VLFL-Lib in October 2020.
Input Parameters
- fh: Temperature in Fahrenheit.
Output Results
- cel: Temperature in Celsius.
Algorithm Steps
- Define the minimum possible temperature in Fahrenheit as
fmin = -459.67
and the corresponding minimum in Celsius as cmin = 273.15
.
- Check if the input temperature
fh
is less than fmin
. If true, display an error message indicating that the temperature is always higher than fmin
Fahrenheit or cmin
Celsius, and set fh
to an empty string.
- Convert the temperature from Fahrenheit to Celsius using the formula:
cel = (fh - 32) / 1.80
.
Example Usage
Fahrenheit2Celsius(0)
: Converts the minimum liquid water temperature in the 18th century.
Fahrenheit2Celsius(98)
: Converts the human body temperature.
Fahrenheit2Celsius(250)
: Converts the temperature for steam sterilization.
Algorithm explaination created using ChatGPT on 2025-08-19 00:32. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21