How to convert long to double in C#

1 Answer

0 votes
using System;
					
public class Program
{
	public static void Main()
	{
		long l = 9567856;
		double d = Convert.ToDouble(l);
		
		Console.WriteLine(d);
	}
}




/*
run:

9567856

*/

 



answered Feb 12, 2021 by avibootz

Related questions

2 answers 392 views
392 views asked Feb 9, 2021 by avibootz
1 answer 70 views
1 answer 142 views
142 views asked Nov 15, 2021 by avibootz
2 answers 199 views
199 views asked Nov 7, 2021 by avibootz
1 answer 188 views
1 answer 296 views
296 views asked Jun 20, 2021 by avibootz
...