Friday, September 5, 2008

C# program to convert from long to double

using System;

class LtoD {
public static void Main() {
long L;
double D;

L = 100123285L; // D=100123285L ;L=D illegal
D = L;

Console.WriteLine("L and D: " + L + " " + D);
}
}

0 comments: