Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
126
def
f_to_c(f: float) -> float:
127
""
"Convert Fahrenheit to Celsius."
""
128
return
(f - 32) * 5 / 9
129
130
131
def
c_to_f(c: float) -> float:
Callers
2
__init__
Method · 0.85
_update_thermal_physics
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected