System.Single.MaxValue Field

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

Value: 3.402823E+38

Syntax

public const float MaxValue

Remarks

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

Requirements

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