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#?
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
7 people are following this question.
Insert a node as child ,before or after a node in nested dynamic JSON Node using C#
Visual Studio 2019: Undefined behavior in a C++/CLI wrapper project.
Example for how to get Package Metadata from Azure DevOps Rest-Api Artifacts using c#
How to collapse individual nested grids/stackpanels inside a grid?