Single 成员
表示一个单精度浮点数字。
下表列出了由 Single 类型公开的成员。
公共字段
名称 | 说明 | |
---|---|---|
Epsilon | 表示大于零的最小正 Single 值。此字段为常数。 | |
MaxValue | 表示 Single 的最大可能值。此字段为常数。 | |
MinValue | 表示 Single 的最小可能值。此字段为常数。 | |
NaN | 表示非数字 (NaN)。此字段为常数。 | |
NegativeInfinity | 表示负无穷。此字段为常数。 | |
PositiveInfinity | 表示正无穷。此字段为常数。 |
页首
公共方法
名称 | 说明 | |
---|---|---|
CompareTo | 已重载。 将此实例与指定对象进行比较并返回一个对二者的相对值的指示。 | |
Equals | 已重载。 已重写。 返回一个值,该值指示 Single 的两个实例是否表示同一个值。 | |
GetHashCode | 已重写。 返回此实例的哈希代码。 | |
GetType | 获取当前实例的 Type。 (从 Object 继承。) | |
GetTypeCode | 返回值类型 Single 的 TypeCode。 | |
IsInfinity | 返回一个值,该值指示指定数字是计算为负无穷大还是正无穷大。 | |
IsNaN | 返回一个值,该值指示指定数字是否计算为非数字 (NaN)。 | |
IsNegativeInfinity | 返回一个值,通过该值指示指定数字是否计算为负无穷大。 | |
IsPositiveInfinity | 返回一个值,通过该值指示指定数字是否计算为正无穷大。 | |
Parse | 已重载。 将数字的字符串表示形式转换为它的等效单精度浮点数字。 | |
ReferenceEquals | 确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。) | |
ToString | 已重载。 已重写。 将此实例的数值转换为其等效的字符串表示。 | |
TryParse | 已重载。 将数字的字符串表示形式转换为它的等效单精度浮点数字。一个指示转换是否成功的返回代码。 |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
System.IConvertible.ToBoolean | 有关此成员的说明,请参见 IConvertible.ToBoolean。 | |
System.IConvertible.ToByte | 有关此成员的说明,请参见 IConvertible.ToByte。 | |
System.IConvertible.ToChar | 有关此成员的说明,请参见 IConvertible.ToChar。 | |
System.IConvertible.ToDateTime | 有关此成员的说明,请参见 IConvertible.ToDateTime。 | |
System.IConvertible.ToDecimal | 有关此成员的说明,请参见 IConvertible.ToDecimal。 | |
System.IConvertible.ToDouble | 有关此成员的说明,请参见 IConvertible.ToDouble。 | |
System.IConvertible.ToInt16 | 有关此成员的说明,请参见 IConvertible.ToInt16。 | |
System.IConvertible.ToInt32 | 有关此成员的说明,请参见 IConvertible.ToInt32。 | |
System.IConvertible.ToInt64 | 有关此成员的说明,请参见 IConvertible.ToInt64。 | |
System.IConvertible.ToSByte | 有关此成员的说明,请参见 IConvertible.ToSByte。 | |
System.IConvertible.ToSingle | 有关此成员的说明,请参见 IConvertible.ToSingle。 | |
System.IConvertible.ToType | 有关此成员的说明,请参见 IConvertible.ToType。 | |
System.IConvertible.ToUInt16 | 有关此成员的说明,请参见 IConvertible.ToUInt16。 | |
System.IConvertible.ToUInt32 | 有关此成员的说明,请参见 IConvertible.ToUInt32。 | |
System.IConvertible.ToUInt64 | 有关此成员的说明,请参见 IConvertible.ToUInt64。 |
页首