Whenever I click the Celsius or Fahrenheit letter, it’s supposed to convert and show the converted value.
However, it works at first, but when I keep clicking the letter, it started giving me a negative number, which is not the original temperature value.
This is what it looks like when I first load the page
This is what it looks like after I click the "C"
and this is what it looks like when I click the "F"
It gave me a different value from the original, is my code correct? I tried going through the code over and over, but I can’t seem to find what is causing this calculation error