Share via


Double 成员

表示一个双精度浮点数字。

下表列出了由 Double 类型公开的成员。

公共字段

  名称 说明
Public field Static Supported by the .NET Compact Framework Epsilon 表示大于零的最小正 Double 值。此字段为常数。
Public field Static Supported by the .NET Compact Framework MaxValue 表示 Double 的最大可能值。此字段为常数。
Public field Static Supported by the .NET Compact Framework MinValue 表示 Double 的最小可能值。此字段为常数。
Public field Static Supported by the .NET Compact Framework NaN 表示不是数字 (NaN) 的值。此字段为常数。
Public field Static Supported by the .NET Compact Framework NegativeInfinity 表示负无穷。此字段为常数。
Public field Static Supported by the .NET Compact Framework PositiveInfinity 表示正无穷。此字段为常数。

页首

公共方法

  名称 说明
Public method Supported by the .NET Compact Framework CompareTo 已重载。 将此实例与指定的对象或 Double 进行比较,并返回二者相对值的指示。
Public method Supported by the .NET Compact Framework Equals 已重载。 返回一个值,该值指示 Double 的两个实例是否表示同一个值。
Public method Supported by the .NET Compact Framework GetHashCode 已重写。 返回此实例的哈希代码。
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetTypeCode 返回值类型 DoubleTypeCode
Public method Static Supported by the .NET Compact Framework IsInfinity 返回一个值,该值指示指定数字是计算为负无穷大还是正无穷大。
Public method Static Supported by the .NET Compact Framework IsNaN 返回一个值,该值指示指定数字的计算结果是否为不是数字 (NaN) 的值。
Public method Static Supported by the .NET Compact Framework IsNegativeInfinity 返回一个值,通过该值指示指定数字是否计算为负无穷大。
Public method Static Supported by the .NET Compact Framework IsPositiveInfinity 返回一个值,通过该值指示指定数字是否计算为正无穷大。
Public method Static Supported by the .NET Compact Framework Parse 已重载。 将数字的字符串表示形式转换为它的等效双精度浮点数字。
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ToString 已重载。 已重写。 将此实例的数值转换为其等效的字符串表示。
Public method Static TryParse 已重载。 将数字的字符串表示形式转换为它的等效双精度浮点数字。一个指示转换是否成功的返回值。

页首

显式接口实现

  名称 说明
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToBoolean 有关此成员的说明,请参见 IConvertible.ToBoolean
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToByte 有关此成员的说明,请参见 IConvertible.ToByte
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToChar 有关此成员的说明,请参见 IConvertible.ToChar
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToDateTime 不支持此转换。尝试这样做会引发 InvalidCastException
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToDecimal 有关此成员的说明,请参见 IConvertible.ToDecimal
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToDouble 有关此成员的说明,请参见 IConvertible.ToDouble
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToInt16 有关此成员的说明,请参见 IConvertible.ToInt16
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToInt32 有关此成员的说明,请参见 IConvertible.ToInt32
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToInt64 有关此成员的说明,请参见 IConvertible.ToInt64
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToSByte 有关此成员的说明,请参见 IConvertible.ToSByte
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToSingle 有关此成员的说明,请参见 IConvertible.ToSingle
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToType 有关此成员的说明,请参见 IConvertible.ToType
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToUInt16 有关此成员的说明,请参见 IConvertible.ToUInt16
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToUInt32 有关此成员的说明,请参见 IConvertible.ToUInt32
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToUInt64 有关此成员的说明,请参见 IConvertible.ToUInt64

页首

请参见

参考

Double 结构
System 命名空间