Single.MaxValue Field

July 28, 2014

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public const float MaxValue

The value of this constant is positive 3.402823e38.

The following code example demonstrates the MaxValue constant.


if (s > Single.MaxValue)
{
   outputBlock.Text += "Your number is larger than a Single." + "\n";
}


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft