How to set scientific notation value to double variable in C#

1 Answer

0 votes
using System;

public class Example
{
	public static void Main(string[] args)
	{
		double scientificd = 1.23456e4;

		Console.WriteLine("double scientific notation: " + scientificd);
	}
}




/*
run:
   
double scientific notation: 12345.6
   
*/

 



answered Aug 1, 2022 by avibootz

Related questions

...