0
How convert var to double (with Convert.To)?
Var num = 5; num = num + 2.55; Convert.ToDouble(num); Console.WriteLine(num); Error!
2 Answers
0
Try this
var num = 5;
var num2 = Convert.ToDouble(num);
num2 += 2.55;
Console.WriteLine(num2 );
0
thx