System.Single.MaxValue Field

Represents the largest possible value of float. This field is constant.

Value: 3.402823E+38


public const float MaxValue


The value of this constant is positive 3.402823e38.

The result of an operation that exceeds float.MaxValue is float.PositiveInfinity. In the following example, float.PositiveInfinity results from addition, multiplication, and exponentiation operations when the result exceeds float.MaxValue.

code reference: System.Single.MaxValue#1


Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,