When I get helper functions from stack overflow or similar, I normally add a comment with a link to the article, mostly for my own sake so if there’s any problems later I can re-read the article to get more info, or use it to try and find other solutions.
Being from outside of the US I’m used to Celsius for everything, so I can make the same list, the numbers are just not whole 10s and I would probably round to nearest 5.