I am pulling my hair out with this. I have VB.Net code that works, but the C# alternative does not.
VB.Net
Dim MyVal as Double = 500 / 792
'MyVal then equals 0.631313131313131
C#
double MyVal = 500 / 792;
//MyVal then equals 0.0
How can I get the C# code to give me the same result as the VB.Net?
