I believe it will switch to C when the location default is C. I don’t use C so I don’t know. But the code references the local temp variable.
I may have not properly maintained the code for C, but Nest by default is returning C values and code is converting it to F.