wondering what the best way of adding a function without breaking the code

And the funny little degree symbols (°) would render correctly if code tags </> were used.