Horje
unity convert number to notation Code Example
unity convert number to notation
public double number = 1000;
public string numberString = $"Number: {number}";

if (mumber >= 1000) {
  var exponent = (System.Math.Floor(System.Math.Log10(System.Math.Abs(number))));
  var mantissa = (number / System.Math.Pow(10, exponent));
  numberString = $"Number: {mantissa}e{exponent}";
}
else {
  numberString - $"Number: {number}"
}




Csharp

Related
c# string list Code Example c# string list Code Example
c# execute shell command Code Example c# execute shell command Code Example
how to get previous page url aspnet core Code Example how to get previous page url aspnet core Code Example
Run C# project in VS Code Code Example Run C# project in VS Code Code Example
unity game object remove parent Code Example unity game object remove parent Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10