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 397 views
397 views asked Feb 9, 2021 by avibootz
1 answer 76 views
1 answer 151 views
151 views asked Nov 15, 2021 by avibootz
2 answers 209 views
209 views asked Nov 7, 2021 by avibootz
1 answer 196 views
1 answer 304 views
304 views asked Jun 20, 2021 by avibootz
...