MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / f_to_c

Function f_to_c

examples/Modbus PLC Simulator/plc_simulator.py:126–128  ·  view source on GitHub ↗

Convert Fahrenheit to Celsius.

(f: float)

Source from the content-addressed store, hash-verified

124
125
126def f_to_c(f: float) -> float:
127 """Convert Fahrenheit to Celsius."""
128 return (f - 32) * 5 / 9
129
130
131def c_to_f(c: float) -> float:

Callers 2

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected