I am trying to write a calculation that converts from Farenheit to Celcius, if I convert 1 degree Farenheit to Celcius I get an answer of 17.222 which should be -17.222, I am not getting the - symbol in the answer, my code is as follows.
dim ratio as double
dim ratio1 as double
dim ratio2 as double
ratio = val(txtfaren.text)
ratio1 = (ratio - 32)
ratio2 = ratio1 * 5/9
txtfaren1.Text = Format(ratio2,“0.000”)
Thanks