Double.MinValue-Feld
Stellt den kleinstmöglichen Wert einer Double-Struktur dar. Dieses Feld ist konstant.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Const MinValue As Double
'Usage
Dim value As Double
value = Double.MinValue
public const double MinValue
public:
literal double MinValue
public static final double MinValue
public const var MinValue : double
Hinweise
Der Wert dieser Konstanten ist -1.79769313486232e308.
Beispiel
Das folgende Codebeispiel veranschaulicht die Verwendung von MinValue:
Public Class Temperature
Public Shared ReadOnly Property MinValue() As Double
Get
Return Double.MinValue
End Get
End Property
Public Shared ReadOnly Property MaxValue() As Double
Get
Return Double.MaxValue
End Get
End Property
' The value holder
Protected m_value As Double
Public Property Value() As Double
Get
Return m_value
End Get
Set(ByVal Value As Double)
m_value = Value
End Set
End Property
Public Property Celsius() As Double
Get
Return (m_value - 32) / 1.8
End Get
Set(ByVal Value As Double)
m_value = Value * 1.8 + 32
End Set
End Property
End Class
public class Temperature {
public static double MinValue {
get {
return Double.MinValue;
}
}
public static double MaxValue {
get {
return Double.MaxValue;
}
}
// The value holder
protected double m_value;
public double Value {
get {
return m_value;
}
set {
m_value = value;
}
}
public double Celsius {
get {
return (m_value-32.0)/1.8;
}
set {
m_value = 1.8*value+32.0;
}
}
}
public ref class Temperature
{
public:
static property double MinValue
{
double get()
{
return Double::MinValue;
}
}
static property double MaxValue
{
double get()
{
return Double::MaxValue;
}
}
protected:
// The value holder
double m_value;
public:
property double Value
{
double get()
{
return m_value;
}
void set( double value )
{
m_value = value;
}
}
property double Celsius
{
double get()
{
return (m_value - 32.0) / 1.8;
}
void set( double value )
{
m_value = 1.8 * value + 32.0;
}
}
};
public class Temperature {
public static function get MinValue() : double {
return Double.MinValue;
}
public static function get MaxValue() : double {
return Double.MaxValue;
}
// The value holder
protected var m_value : double;
public function get Value() : double{
return m_value;
}
public function set Value(value : double) {
m_value = value;
}
public function get Celsius() : double {
return (m_value-32.0)/1.8;
}
public function set Celsius(value : double) {
m_value = 1.8*value+32.0;
}
}
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
.NET Compact Framework
Unterstützt in: 2.0, 1.0