次の方法で共有


Single.MaxValue フィールド

Single の最大有効値を表します。このフィールドは定数です。

Public Const MaxValue As Single
[C#]
public const float MaxValue;
[C++]
public: const float MaxValue;
[JScript]
public var MaxValue : float;

解説

この定数の値は +3.402823e38 です。

使用例

[Visual Basic, C#, C++] MaxValue 定数のサンプルを次に示します。

 
If S > Single.MaxValue Then
    Console.WriteLine("Your number is larger than a Single.")
End If

[C#] 
if (s > Single.MaxValue)
{
    Console.WriteLine("Your number is larger than a Single.");
}

[C++] 
if (s > Single::MaxValue) {
   Console::WriteLine(S"Your number is larger than a Single.");
}

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard

参照

Single 構造体 | Single メンバ | System 名前空間 | MinValue