EN
C# / .NET - min float value
0 points
In C#, min float number value can be achieved using float.MinValue
that is equal to -3.4028235E+38.
Quick solution:
xxxxxxxxxx
1
float.MinValue
xxxxxxxxxx
1
float value = float.MinValue;
2
3
Console.WriteLine(value);
Output:
xxxxxxxxxx
1
-3.4028235E+38
To see the whole number use the following solution:
xxxxxxxxxx
1
Console.WriteLine(float.MinValue.ToString("#"));
Output:
xxxxxxxxxx
1
-340282300000000000000000000000000000000
Note:
The difference between the results is due to the precision of rounding the number.