I want to make a program that converts Fahrenheit to Kelvins but in the conversion, you need to add 273.15. My current code for the conversion is
int finalTemp = (temp1 - 32) * 5 / 9 + 273.15;
but the compiler gives back:
Error CS0266 Cannot implicitly convert type 'double' to 'int'. An explicit conversion exists (are you missing a cast?)
How do I make it recognize 273.15 as a decimal?