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 414 views
414 views asked Feb 9, 2021 by avibootz
1 answer 81 views
1 answer 161 views
161 views asked Nov 15, 2021 by avibootz
2 answers 218 views
218 views asked Nov 7, 2021 by avibootz
1 answer 206 views
1 answer 313 views
313 views asked Jun 20, 2021 by avibootz
...