MaxValue Field
Collapse the table of content
Expand the table of content

Single.MaxValue Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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:
© 2017 Microsoft