C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I have a number that is 100000000000. Now I want it to show in a scientific notation like 1.0000E+11. How do I do that in C#?
Please see standard numeric formatting in C#.
long number = 100000000000;
string numberFormat = number.ToString("E");
Console.WriteLine(numberFormat);
Results
1.000000E+011