EN
C# / .NET - max float value
0
points
In C#, max float number value can be achieved using float.MaxValue
that is equal to 3.4028235E+38.
Quick solution:
float.MaxValue
Practical example
float value = float.MaxValue;
Console.WriteLine(value);
Output:
3.4028235E+38
To see the whole number use the following solution:
Console.WriteLine(float.MaxValue.ToString("#"));
Output:
340282300000000000000000000000000000000