- Joined
- Jan 22, 2010
- Messages
- 1,948
ok, so the exercise is to put fahrenheit to Celsius
C = (F - 32) / 1.8
that's my code
now i give in 64.4 in txtFahrenheit. And i get 340? celcius. Now this is impossible as it has to be 18...
Anyone know how to fix this omg, this is annoying me ..
C = (F - 32) / 1.8
that's the formula used
Dim dblCelsius As Double
Dim sngFahrenheit As Single
sngFahrenheit = Single.Parse(txtFahrenheit.Text)
dblCelsius = (sngFahrenheit - 32) / 1.8
txtCelsius.Text = dblCelsius.ToString
End Sub
that's my code
now i give in 64.4 in txtFahrenheit. And i get 340? celcius. Now this is impossible as it has to be 18...
Anyone know how to fix this omg, this is annoying me ..







