Fahrenheit2Celsius

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 5.0, Creation date: 2020-10-22, Last change: 2025-09-15

converts temperature values from Fahrenheit to Celsius

Description

Fahrenheit was a German physicist from Danzig 1686-1736. Human body temperature is 98 Fahrenheit
cel=(fh-32)/1.80

See Also: PS2KW , KW2PS , French2mm , mm2inch , Charriere2mm , Gauge2mm , AWG2mm

Example Illustration

 missing image of Fahrenheit2Celsius(fh)

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

Output Results

Algorithm Steps

  1. Define the minimum possible temperature in Fahrenheit as fmin = -459.67 and the corresponding minimum in Celsius as cmin = 273.15.
  2. 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.
  3. Convert the temperature from Fahrenheit to Celsius using the formula: cel = (fh - 32) / 1.80.

Example Usage

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