Single 结构

定义

表示单精度浮点数。

public value class float : IComparable, IComparable<float>, IConvertible, IEquatable<float>, IFormattable
public value class float : IComparable, IComparable<float>, IConvertible, IEquatable<float>, ISpanFormattable
public value class float : IComparable<float>, IConvertible, IEquatable<float>, IParsable<float>, ISpanParsable<float>, System::Numerics::IAdditionOperators<float, float, float>, System::Numerics::IAdditiveIdentity<float, float>, System::Numerics::IBinaryFloatingPointIeee754<float>, System::Numerics::IBinaryNumber<float>, System::Numerics::IBitwiseOperators<float, float, float>, System::Numerics::IComparisonOperators<float, float, bool>, System::Numerics::IDecrementOperators<float>, System::Numerics::IDivisionOperators<float, float, float>, System::Numerics::IEqualityOperators<float, float, bool>, System::Numerics::IExponentialFunctions<float>, System::Numerics::IFloatingPoint<float>, System::Numerics::IFloatingPointConstants<float>, System::Numerics::IFloatingPointIeee754<float>, System::Numerics::IHyperbolicFunctions<float>, System::Numerics::IIncrementOperators<float>, System::Numerics::ILogarithmicFunctions<float>, System::Numerics::IMinMaxValue<float>, System::Numerics::IModulusOperators<float, float, float>, System::Numerics::IMultiplicativeIdentity<float, float>, System::Numerics::IMultiplyOperators<float, float, float>, System::Numerics::INumber<float>, System::Numerics::INumberBase<float>, System::Numerics::IPowerFunctions<float>, System::Numerics::IRootFunctions<float>, System::Numerics::ISignedNumber<float>, System::Numerics::ISubtractionOperators<float, float, float>, System::Numerics::ITrigonometricFunctions<float>, System::Numerics::IUnaryNegationOperators<float, float>, System::Numerics::IUnaryPlusOperators<float, float>
public value class float : IComparable<float>, IConvertible, IEquatable<float>, IParsable<float>, ISpanParsable<float>, IUtf8SpanParsable<float>, System::Numerics::IAdditionOperators<float, float, float>, System::Numerics::IAdditiveIdentity<float, float>, System::Numerics::IBinaryFloatingPointIeee754<float>, System::Numerics::IBinaryNumber<float>, System::Numerics::IBitwiseOperators<float, float, float>, System::Numerics::IComparisonOperators<float, float, bool>, System::Numerics::IDecrementOperators<float>, System::Numerics::IDivisionOperators<float, float, float>, System::Numerics::IEqualityOperators<float, float, bool>, System::Numerics::IExponentialFunctions<float>, System::Numerics::IFloatingPoint<float>, System::Numerics::IFloatingPointConstants<float>, System::Numerics::IFloatingPointIeee754<float>, System::Numerics::IHyperbolicFunctions<float>, System::Numerics::IIncrementOperators<float>, System::Numerics::ILogarithmicFunctions<float>, System::Numerics::IMinMaxValue<float>, System::Numerics::IModulusOperators<float, float, float>, System::Numerics::IMultiplicativeIdentity<float, float>, System::Numerics::IMultiplyOperators<float, float, float>, System::Numerics::INumber<float>, System::Numerics::INumberBase<float>, System::Numerics::IPowerFunctions<float>, System::Numerics::IRootFunctions<float>, System::Numerics::ISignedNumber<float>, System::Numerics::ISubtractionOperators<float, float, float>, System::Numerics::ITrigonometricFunctions<float>, System::Numerics::IUnaryNegationOperators<float, float>, System::Numerics::IUnaryPlusOperators<float, float>
public value class float : IComparable, IConvertible, IFormattable
public value class float : IComparable, IComparable<float>, IEquatable<float>, IFormattable
public struct Single : IComparable, IComparable<float>, IConvertible, IEquatable<float>, IFormattable
public readonly struct Single : IComparable, IComparable<float>, IConvertible, IEquatable<float>, IFormattable
public readonly struct Single : IComparable, IComparable<float>, IConvertible, IEquatable<float>, ISpanFormattable
public readonly struct Single : IComparable<float>, IConvertible, IEquatable<float>, IParsable<float>, ISpanParsable<float>, System.Numerics.IAdditionOperators<float,float,float>, System.Numerics.IAdditiveIdentity<float,float>, System.Numerics.IBinaryFloatingPointIeee754<float>, System.Numerics.IBinaryNumber<float>, System.Numerics.IBitwiseOperators<float,float,float>, System.Numerics.IComparisonOperators<float,float,bool>, System.Numerics.IDecrementOperators<float>, System.Numerics.IDivisionOperators<float,float,float>, System.Numerics.IEqualityOperators<float,float,bool>, System.Numerics.IExponentialFunctions<float>, System.Numerics.IFloatingPoint<float>, System.Numerics.IFloatingPointConstants<float>, System.Numerics.IFloatingPointIeee754<float>, System.Numerics.IHyperbolicFunctions<float>, System.Numerics.IIncrementOperators<float>, System.Numerics.ILogarithmicFunctions<float>, System.Numerics.IMinMaxValue<float>, System.Numerics.IModulusOperators<float,float,float>, System.Numerics.IMultiplicativeIdentity<float,float>, System.Numerics.IMultiplyOperators<float,float,float>, System.Numerics.INumber<float>, System.Numerics.INumberBase<float>, System.Numerics.IPowerFunctions<float>, System.Numerics.IRootFunctions<float>, System.Numerics.ISignedNumber<float>, System.Numerics.ISubtractionOperators<float,float,float>, System.Numerics.ITrigonometricFunctions<float>, System.Numerics.IUnaryNegationOperators<float,float>, System.Numerics.IUnaryPlusOperators<float,float>
public readonly struct Single : IComparable<float>, IConvertible, IEquatable<float>, IParsable<float>, ISpanParsable<float>, IUtf8SpanParsable<float>, System.Numerics.IAdditionOperators<float,float,float>, System.Numerics.IAdditiveIdentity<float,float>, System.Numerics.IBinaryFloatingPointIeee754<float>, System.Numerics.IBinaryNumber<float>, System.Numerics.IBitwiseOperators<float,float,float>, System.Numerics.IComparisonOperators<float,float,bool>, System.Numerics.IDecrementOperators<float>, System.Numerics.IDivisionOperators<float,float,float>, System.Numerics.IEqualityOperators<float,float,bool>, System.Numerics.IExponentialFunctions<float>, System.Numerics.IFloatingPoint<float>, System.Numerics.IFloatingPointConstants<float>, System.Numerics.IFloatingPointIeee754<float>, System.Numerics.IHyperbolicFunctions<float>, System.Numerics.IIncrementOperators<float>, System.Numerics.ILogarithmicFunctions<float>, System.Numerics.IMinMaxValue<float>, System.Numerics.IModulusOperators<float,float,float>, System.Numerics.IMultiplicativeIdentity<float,float>, System.Numerics.IMultiplyOperators<float,float,float>, System.Numerics.INumber<float>, System.Numerics.INumberBase<float>, System.Numerics.IPowerFunctions<float>, System.Numerics.IRootFunctions<float>, System.Numerics.ISignedNumber<float>, System.Numerics.ISubtractionOperators<float,float,float>, System.Numerics.ITrigonometricFunctions<float>, System.Numerics.IUnaryNegationOperators<float,float>, System.Numerics.IUnaryPlusOperators<float,float>
[System.Serializable]
public struct Single : IComparable, IConvertible, IFormattable
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct Single : IComparable, IComparable<float>, IConvertible, IEquatable<float>, IFormattable
public struct Single : IComparable, IComparable<float>, IEquatable<float>, IFormattable
type single = struct
    interface IConvertible
    interface IFormattable
type single = struct
    interface IConvertible
    interface ISpanFormattable
    interface IFormattable
type single = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<single>
    interface ISpanFormattable
    interface ISpanParsable<single>
    interface IAdditionOperators<single, single, single>
    interface IAdditiveIdentity<single, single>
    interface IBinaryFloatingPointIeee754<single>
    interface IBinaryNumber<single>
    interface IBitwiseOperators<single, single, single>
    interface IComparisonOperators<single, single, bool>
    interface IEqualityOperators<single, single, bool>
    interface IDecrementOperators<single>
    interface IDivisionOperators<single, single, single>
    interface IIncrementOperators<single>
    interface IModulusOperators<single, single, single>
    interface IMultiplicativeIdentity<single, single>
    interface IMultiplyOperators<single, single, single>
    interface INumber<single>
    interface INumberBase<single>
    interface ISubtractionOperators<single, single, single>
    interface IUnaryNegationOperators<single, single>
    interface IUnaryPlusOperators<single, single>
    interface IExponentialFunctions<single>
    interface IFloatingPointConstants<single>
    interface IFloatingPoint<single>
    interface ISignedNumber<single>
    interface IFloatingPointIeee754<single>
    interface IHyperbolicFunctions<single>
    interface ILogarithmicFunctions<single>
    interface IPowerFunctions<single>
    interface IRootFunctions<single>
    interface ITrigonometricFunctions<single>
    interface IMinMaxValue<single>
type single = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<single>
    interface ISpanFormattable
    interface ISpanParsable<single>
    interface IAdditionOperators<single, single, single>
    interface IAdditiveIdentity<single, single>
    interface IBinaryFloatingPointIeee754<single>
    interface IBinaryNumber<single>
    interface IBitwiseOperators<single, single, single>
    interface IComparisonOperators<single, single, bool>
    interface IEqualityOperators<single, single, bool>
    interface IDecrementOperators<single>
    interface IDivisionOperators<single, single, single>
    interface IIncrementOperators<single>
    interface IModulusOperators<single, single, single>
    interface IMultiplicativeIdentity<single, single>
    interface IMultiplyOperators<single, single, single>
    interface INumber<single>
    interface INumberBase<single>
    interface ISubtractionOperators<single, single, single>
    interface IUnaryNegationOperators<single, single>
    interface IUnaryPlusOperators<single, single>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<single>
    interface IExponentialFunctions<single>
    interface IFloatingPointConstants<single>
    interface IFloatingPoint<single>
    interface ISignedNumber<single>
    interface IFloatingPointIeee754<single>
    interface IHyperbolicFunctions<single>
    interface ILogarithmicFunctions<single>
    interface IPowerFunctions<single>
    interface IRootFunctions<single>
    interface ITrigonometricFunctions<single>
    interface IMinMaxValue<single>
type single = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<single>
    interface ISpanFormattable
    interface ISpanParsable<single>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<single>
    interface IAdditionOperators<single, single, single>
    interface IAdditiveIdentity<single, single>
    interface IBinaryFloatingPointIeee754<single>
    interface IBinaryNumber<single>
    interface IBitwiseOperators<single, single, single>
    interface IComparisonOperators<single, single, bool>
    interface IEqualityOperators<single, single, bool>
    interface IDecrementOperators<single>
    interface IDivisionOperators<single, single, single>
    interface IIncrementOperators<single>
    interface IModulusOperators<single, single, single>
    interface IMultiplicativeIdentity<single, single>
    interface IMultiplyOperators<single, single, single>
    interface INumber<single>
    interface INumberBase<single>
    interface ISubtractionOperators<single, single, single>
    interface IUnaryNegationOperators<single, single>
    interface IUnaryPlusOperators<single, single>
    interface IExponentialFunctions<single>
    interface IFloatingPointConstants<single>
    interface IFloatingPoint<single>
    interface ISignedNumber<single>
    interface IFloatingPointIeee754<single>
    interface IHyperbolicFunctions<single>
    interface ILogarithmicFunctions<single>
    interface IPowerFunctions<single>
    interface IRootFunctions<single>
    interface ITrigonometricFunctions<single>
    interface IMinMaxValue<single>
[<System.Serializable>]
type single = struct
    interface IFormattable
    interface IConvertible
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type single = struct
    interface IFormattable
    interface IConvertible
type single = struct
    interface IFormattable
Public Structure Single
Implements IComparable, IComparable(Of Single), IConvertible, IEquatable(Of Single), IFormattable
Public Structure Single
Implements IComparable, IComparable(Of Single), IConvertible, IEquatable(Of Single), ISpanFormattable
Public Structure Single
Implements IAdditionOperators(Of Single, Single, Single), IAdditiveIdentity(Of Single, Single), IBinaryFloatingPointIeee754(Of Single), IBinaryNumber(Of Single), IBitwiseOperators(Of Single, Single, Single), IComparable(Of Single), IComparisonOperators(Of Single, Single, Boolean), IConvertible, IDecrementOperators(Of Single), IDivisionOperators(Of Single, Single, Single), IEqualityOperators(Of Single, Single, Boolean), IEquatable(Of Single), IExponentialFunctions(Of Single), IFloatingPoint(Of Single), IFloatingPointConstants(Of Single), IFloatingPointIeee754(Of Single), IHyperbolicFunctions(Of Single), IIncrementOperators(Of Single), ILogarithmicFunctions(Of Single), IMinMaxValue(Of Single), IModulusOperators(Of Single, Single, Single), IMultiplicativeIdentity(Of Single, Single), IMultiplyOperators(Of Single, Single, Single), INumber(Of Single), INumberBase(Of Single), IParsable(Of Single), IPowerFunctions(Of Single), IRootFunctions(Of Single), ISignedNumber(Of Single), ISpanParsable(Of Single), ISubtractionOperators(Of Single, Single, Single), ITrigonometricFunctions(Of Single), IUnaryNegationOperators(Of Single, Single), IUnaryPlusOperators(Of Single, Single)
Public Structure Single
Implements IAdditionOperators(Of Single, Single, Single), IAdditiveIdentity(Of Single, Single), IBinaryFloatingPointIeee754(Of Single), IBinaryNumber(Of Single), IBitwiseOperators(Of Single, Single, Single), IComparable(Of Single), IComparisonOperators(Of Single, Single, Boolean), IConvertible, IDecrementOperators(Of Single), IDivisionOperators(Of Single, Single, Single), IEqualityOperators(Of Single, Single, Boolean), IEquatable(Of Single), IExponentialFunctions(Of Single), IFloatingPoint(Of Single), IFloatingPointConstants(Of Single), IFloatingPointIeee754(Of Single), IHyperbolicFunctions(Of Single), IIncrementOperators(Of Single), ILogarithmicFunctions(Of Single), IMinMaxValue(Of Single), IModulusOperators(Of Single, Single, Single), IMultiplicativeIdentity(Of Single, Single), IMultiplyOperators(Of Single, Single, Single), INumber(Of Single), INumberBase(Of Single), IParsable(Of Single), IPowerFunctions(Of Single), IRootFunctions(Of Single), ISignedNumber(Of Single), ISpanParsable(Of Single), ISubtractionOperators(Of Single, Single, Single), ITrigonometricFunctions(Of Single), IUnaryNegationOperators(Of Single, Single), IUnaryPlusOperators(Of Single, Single), IUtf8SpanParsable(Of Single)
Public Structure Single
Implements IComparable, IConvertible, IFormattable
Public Structure Single
Implements IComparable, IComparable(Of Single), IEquatable(Of Single), IFormattable
继承
Single
属性
实现
IComparable IComparable<Single> IConvertible IEquatable<Single> IFormattable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<Single> IParsable<TSelf> ISpanParsable<Single> ISpanParsable<TSelf> IAdditionOperators<Single,Single,Single> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<Single,Single> IAdditiveIdentity<TSelf,TSelf> IBinaryFloatingPointIeee754<Single> IBinaryNumber<Single> IBinaryNumber<TSelf> IBitwiseOperators<Single,Single,Single> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<Single,Single,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<Single> IDecrementOperators<TSelf> IDivisionOperators<Single,Single,Single> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<Single,Single,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IExponentialFunctions<Single> IExponentialFunctions<TSelf> IFloatingPoint<Single> IFloatingPoint<TSelf> IFloatingPointConstants<Single> IFloatingPointConstants<TSelf> IFloatingPointIeee754<Single> IFloatingPointIeee754<TSelf> IHyperbolicFunctions<Single> IHyperbolicFunctions<TSelf> IIncrementOperators<Single> IIncrementOperators<TSelf> ILogarithmicFunctions<Single> ILogarithmicFunctions<TSelf> IMinMaxValue<Single> IModulusOperators<Single,Single,Single> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<Single,Single> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<Single,Single,Single> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<Single> INumber<TSelf> INumberBase<Single> INumberBase<TSelf> IPowerFunctions<Single> IPowerFunctions<TSelf> IRootFunctions<Single> IRootFunctions<TSelf> ISignedNumber<Single> ISignedNumber<TSelf> ISubtractionOperators<Single,Single,Single> ISubtractionOperators<TSelf,TSelf,TSelf> ITrigonometricFunctions<Single> ITrigonometricFunctions<TSelf> IUnaryNegationOperators<Single,Single> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<Single,Single> IUnaryPlusOperators<TSelf,TSelf> IUtf8SpanFormattable IUtf8SpanParsable<Single> IUtf8SpanParsable<TSelf>

注解

有关此 API 的详细信息,请参阅单补充 API 说明。

字段

E

表示由常量指定的自然对数基数,e.

Epsilon

表示大于零的最小正 Single 值。 此字段为常量。

MaxValue

表示 Single的最大可能值。 此字段为常量。

MinValue

表示 Single的最小可能值。 此字段为常量。

NaN

表示数字(NaN)。 此字段为常量。

NegativeInfinity

表示负无穷大。 此字段为常量。

NegativeZero

表示负零(-0)。

Pi

表示圆的周长与其直径的比率,由常量指定,π。

PositiveInfinity

表示正无穷大。 此字段为常量。

Tau

表示一个轮次的弧度数,由常量 τ 指定。

方法

Abs(Single)

计算值的绝对值。

Acos(Single)

计算值的反余弦值。

Acosh(Single)

计算值的双曲反余弦值。

AcosPi(Single)

计算值的反余弦值,并将结果除以 pi

Asin(Single)

计算值的反正弦值。

Asinh(Single)

计算值的双曲反正弦值。

AsinPi(Single)

计算值的反正弦值,并将结果除以 pi

Atan(Single)

计算值的反正切值。

Atan2(Single, Single)

计算两个值的商的反正切值。

Atan2Pi(Single, Single)

计算两个值的商的反正切值,并将结果除以 pi

Atanh(Single)

计算值的双曲反正切值。

AtanPi(Single)

计算值的反正切值,并将结果除以 pi。

BitDecrement(Single)

将值递减为小于给定值的最小值。

BitIncrement(Single)

将值递增为与给定值进行比较的最小值。

Cbrt(Single)

计算值的多维数据集根。

Ceiling(Single)

计算值的上限。

Clamp(Single, Single, Single)

将值固定到非独占最小值和最大值。

CompareTo(Object)

将此实例与指定的对象进行比较,并返回一个整数,该整数指示此实例的值是小于、等于还是大于指定对象的值。

CompareTo(Single)

将此实例与指定的单精度浮点数进行比较,并返回一个整数,该值指示此实例的值是小于、等于还是大于指定的单精度浮点数的值。

ConvertToInteger<TInteger>(Single)

使用溢出时饱和度将值转换为指定的整数类型

ConvertToIntegerNative<TInteger>(Single)

使用特定于平台的行为在溢出时将值转换为指定的整数类型。

CopySign(Single, Single)

将值的符号复制到另一个值的符号。

Cos(Single)

计算值的余弦值。

Cosh(Single)

计算值的双曲余弦值。

CosPi(Single)

计算由 pi乘数的值的余弦值。

CreateChecked<TOther>(TOther)

从值创建当前类型的实例,为超出当前类型的可表示范围的任何值引发溢出异常。

CreateSaturating<TOther>(TOther)

从值创建当前类型的实例,使属于当前类型的可表示范围之外的任何值饱和。

CreateTruncating<TOther>(TOther)

从值创建当前类型的实例,截断属于当前类型的可表示范围之外的任何值。

DegreesToRadians(Single)

将给定值从度转换为弧度。

Equals(Object)

返回一个值,该值指示此实例是否等于指定的对象。

Equals(Single)

返回一个值,该值指示此实例和指定的 Single 对象是否表示相同的值。

Exp(Single)

计算 E 提升到给定功率。

Exp10(Single)

计算 10 提升到给定功率。

Exp10M1(Single)

计算 10 提升到给定功率并减去一个。

Exp2(Single)

计算 2 提升到给定功率。

Exp2M1(Single)

计算 2 提升到给定功率并减去一个。

ExpM1(Single)

计算 E 提升到给定功率并减去一个。

Floor(Single)

计算值的下限。

FusedMultiplyAdd(Single, Single, Single)

计算三个值的融合乘法。

GetHashCode()

返回此实例的哈希代码。

GetTypeCode()

返回值类型 SingleTypeCode

Hypot(Single, Single)

计算给定的两个值,该值表示右角三角形中较短边的长度。

Ieee754Remainder(Single, Single)

计算 IEEE 754 指定的两个值的余数。

ILogB(Single)

计算值的整数对数。

IsEvenInteger(Single)

确定值是否表示偶数。

IsFinite(Single)

确定指定的值是有限值(零、非正常值还是正常值)。

IsInfinity(Single)

返回一个值,该值指示指定的数字的计算结果为负数还是正无穷大。

IsInteger(Single)

确定值是否表示整型值。

IsNaN(Single)

返回一个值,该值指示指定的值是否不是数字(NaN)。

IsNegative(Single)

确定指定的值是否为负值。

IsNegativeInfinity(Single)

返回一个值,该值指示指定的数字是否计算为负无穷大。

IsNormal(Single)

确定指定的值是否正常。

IsOddInteger(Single)

确定值是否表示奇数整数。

IsPositive(Single)

确定值是否为正值。

IsPositiveInfinity(Single)

返回一个值,该值指示指定的数字是否计算为正无穷大。

IsPow2(Single)

确定值是否为 2 的幂。

IsRealNumber(Single)

确定值是否表示实数。

IsSubnormal(Single)

确定指定的值是否为非正常值。

Lerp(Single, Single, Single)

根据给定权重在两个值之间执行线性内插。

Log(Single)

计算值的自然(base-E 对数)。

Log(Single, Single)

计算指定基中的值的对数。

Log10(Single)

计算值的 base-10 对数。

Log10P1(Single)

计算值加 10 的 base-10 对数。

Log2(Single)

计算值的 log2。

Log2P1(Single)

计算值加 1 的 base-2 对数。

LogP1(Single)

计算值加 1 的自然(base-E)对数。

Max(Single, Single)

比较两个值与计算值更大。

MaxMagnitude(Single, Single)

比较两个值与计算值更大。

MaxMagnitudeNumber(Single, Single)

比较两个值与计算值,如果输入 NaN,则返回另一个值。

MaxNumber(Single, Single)

将两个值与计算进行比较,如果输入 NaN,则返回另一个值。

Min(Single, Single)

比较两个值与计算值较小。

MinMagnitude(Single, Single)

比较两个值与计算值较小。

MinMagnitudeNumber(Single, Single)

将两个值与计算进行比较,如果输入 NaN,则返回另一个值。

MinNumber(Single, Single)

将两个值与计算进行比较,如果输入 NaN,则返回另一个值。

MultiplyAddEstimate(Single, Single, Single)

计算 (left * right) + addend的估计值。

Parse(ReadOnlySpan<Byte>, IFormatProvider)

将 UTF-8 字符的范围分析为值。

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

将 UTF-8 字符的范围分析为值。

Parse(ReadOnlySpan<Char>, IFormatProvider)

将字符的范围分析为值。

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

将包含指定样式和区域性特定格式的数字的字符串表示形式的字符范围转换为其等效的单精度浮点数。

Parse(String)

将数字的字符串表示形式转换为其等效的单精度浮点数。

Parse(String, IFormatProvider)

将指定区域性特定格式的数字的字符串表示形式转换为其等效的单精度浮点数。

Parse(String, NumberStyles)

将指定样式中的数字的字符串表示形式转换为其等效的单精度浮点数。

Parse(String, NumberStyles, IFormatProvider)

将指定样式和区域性特定格式的数字的字符串表示形式转换为其等效的单精度浮点数。

Pow(Single, Single)

计算提升到给定功率的值。

RadiansToDegrees(Single)

将给定值从弧度转换为度。

ReciprocalEstimate(Single)

计算值的对等值的估计值。

ReciprocalSqrtEstimate(Single)

计算值的倒数平方根的估计值。

RootN(Single, Int32)

计算值的第 n 个根。

Round(Single)

使用默认舍入模式(ToEven)将值舍入到最接近的整数。

Round(Single, Int32)

使用默认舍入模式(ToEven)将值舍入为指定数量的小数位数。

Round(Single, Int32, MidpointRounding)

使用默认舍入模式(ToEven)将值舍入为指定数量的小数位数。

Round(Single, MidpointRounding)

使用指定的舍入模式将值舍入到最接近的整数。

ScaleB(Single, Int32)

计算一个值及其基弧度升至指定功率的乘积。

Sign(Single)

计算值的符号。

Sin(Single)

计算值的正弦值。

SinCos(Single)

计算值的正弦值和余弦值。

SinCosPi(Single)

计算值的正弦值和余弦值。

Sinh(Single)

计算值的双曲正弦值。

SinPi(Single)

计算乘以 pi的值的正弦值。

Sqrt(Single)

计算值的平方根。

Tan(Single)

计算值的正切值。

Tanh(Single)

计算值的双曲正切值。

TanPi(Single)

计算由 pi乘数的值的正切值。

ToString()

将此实例的数值转换为其等效的字符串表示形式。

ToString(IFormatProvider)

使用指定的区域性特定格式信息将此实例的数值转换为其等效的字符串表示形式。

ToString(String)

使用指定的格式将此实例的数值转换为其等效的字符串表示形式。

ToString(String, IFormatProvider)

使用指定的格式和区域性特定的格式信息将此实例的数值转换为其等效的字符串表示形式。

Truncate(Single)

截断值。

TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

尝试将当前实例的值格式化为 UTF-8,并将其设置为提供的字节范围。

TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

尝试将当前浮点数实例的值格式化为提供的字符范围。

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Single)

尝试将 UTF-8 字符的范围分析为值。

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, Single)

尝试将 UTF-8 字符的范围分析为值。

TryParse(ReadOnlySpan<Byte>, Single)

尝试将包含数字字符串表示形式的 UTF-8 字符范围转换为其等效的单精度浮点数。

TryParse(ReadOnlySpan<Char>, IFormatProvider, Single)

尝试将字符范围分析为值。

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, Single)

将指定样式和区域性特定格式的数字的跨度表示形式转换为其等效的单精度浮点数。 返回值指示转换是成功还是失败。

TryParse(ReadOnlySpan<Char>, Single)

将字符范围中数字的字符串表示形式转换为其等效的单精度浮点数。 返回值指示转换是成功还是失败。

TryParse(String, IFormatProvider, Single)

尝试将字符串分析为值。

TryParse(String, NumberStyles, IFormatProvider, Single)

将指定样式和区域性特定格式的数字的字符串表示形式转换为其等效的单精度浮点数。 返回值指示转换是成功还是失败。

TryParse(String, Single)

将数字的字符串表示形式转换为其等效的单精度浮点数。 返回值指示转换是成功还是失败。

运算符

Equality(Single, Single)

返回一个值,该值指示两个指定的 Single 值是否相等。

GreaterThan(Single, Single)

返回一个值,该值指示指定的 Single 值是否大于另一个指定的 Single 值。

GreaterThanOrEqual(Single, Single)

返回一个值,该值指示指定的 Single 值是否大于或等于另一个指定的 Single 值。

Inequality(Single, Single)

返回一个值,该值指示两个指定的 Single 值是否不相等。

LessThan(Single, Single)

返回一个值,该值指示指定的 Single 值是否小于另一个指定的 Single 值。

LessThanOrEqual(Single, Single)

返回一个值,该值指示指定的 Single 值是否小于或等于另一个指定的 Single 值。

显式接口实现

IAdditionOperators<Single,Single,Single>.Addition(Single, Single)

将两个值相加以计算其总和。

IAdditiveIdentity<Single,Single>.AdditiveIdentity

获取当前类型的累加标识。

IBinaryNumber<Single>.AllBitsSet

获取在其中设置所有位的二进制类型的实例。

IBitwiseOperators<Single,Single,Single>.BitwiseAnd(Single, Single)

计算两个值的按位和两个值。

IBitwiseOperators<Single,Single,Single>.BitwiseOr(Single, Single)

计算两个值的按位或两个值。

IBitwiseOperators<Single,Single,Single>.ExclusiveOr(Single, Single)

计算独占值或两个值。

IBitwiseOperators<Single,Single,Single>.OnesComplement(Single)

计算给定值的补补表示形式。

IComparable.CompareTo(Object)

将当前实例与同一类型的另一个对象进行比较,并返回一个整数,该整数指示当前实例在排序顺序中是否与另一个对象位于同一位置。

IConvertible.GetTypeCode()

返回此实例的 TypeCode

IConvertible.ToBoolean(IFormatProvider)

有关此成员的说明,请参阅 ToBoolean(IFormatProvider)

IConvertible.ToByte(IFormatProvider)

有关此成员的说明,请参阅 ToByte(IFormatProvider)

IConvertible.ToChar(IFormatProvider)

不支持此转换。 尝试使用此方法将引发 InvalidCastException

IConvertible.ToDateTime(IFormatProvider)

不支持此转换。 尝试使用此方法将引发 InvalidCastException

IConvertible.ToDecimal(IFormatProvider)

有关此成员的说明,请参阅 ToDecimal(IFormatProvider)

IConvertible.ToDouble(IFormatProvider)

有关此成员的说明,请参阅 ToDouble(IFormatProvider)

IConvertible.ToInt16(IFormatProvider)

有关此成员的说明,请参阅 ToInt16(IFormatProvider)

IConvertible.ToInt32(IFormatProvider)

有关此成员的说明,请参阅 ToInt32(IFormatProvider)

IConvertible.ToInt64(IFormatProvider)

有关此成员的说明,请参阅 ToInt64(IFormatProvider)

IConvertible.ToSByte(IFormatProvider)

有关此成员的说明,请参阅 ToSByte(IFormatProvider)

IConvertible.ToSingle(IFormatProvider)

有关此成员的说明,请参阅 ToSingle(IFormatProvider)

IConvertible.ToType(Type, IFormatProvider)

有关此成员的说明,请参阅 ToType(Type, IFormatProvider)

IConvertible.ToUInt16(IFormatProvider)

有关此成员的说明,请参阅 ToUInt16(IFormatProvider)

IConvertible.ToUInt32(IFormatProvider)

有关此成员的说明,请参阅 ToUInt32(IFormatProvider)

IConvertible.ToUInt64(IFormatProvider)

有关此成员的说明,请参阅 ToUInt64(IFormatProvider)

IDecrementOperators<Single>.Decrement(Single)

递减值。

IDivisionOperators<Single,Single,Single>.Division(Single, Single)

将一个值除以计算其商。

IFloatingPoint<Single>.GetExponentByteCount()

获取将作为 TryWriteExponentLittleEndian(Span<Byte>, Int32)一部分写入的字节数。

IFloatingPoint<Single>.GetExponentShortestBitLength()

获取最短两个指数的补数表示形式的长度(以位为单位)。

IFloatingPoint<Single>.GetSignificandBitLength()

获取当前标志的长度(以位为单位)。

IFloatingPoint<Single>.GetSignificandByteCount()

获取将作为 TryWriteSignificandLittleEndian(Span<Byte>, Int32)一部分写入的字节数。

IFloatingPoint<Single>.TryWriteExponentBigEndian(Span<Byte>, Int32)

尝试将当前指数(采用 big-endian 格式)写入给定范围。

IFloatingPoint<Single>.TryWriteExponentLittleEndian(Span<Byte>, Int32)

尝试将当前指数(以小端格式)写入给定范围。

IFloatingPoint<Single>.TryWriteSignificandBigEndian(Span<Byte>, Int32)

尝试将当前符号(采用 big-endian 格式)写入给定范围。

IFloatingPoint<Single>.TryWriteSignificandLittleEndian(Span<Byte>, Int32)

尝试将当前符号(以小端格式)写入给定范围。

IFloatingPointConstants<Single>.E

获取数学常量 e

IFloatingPointConstants<Single>.Pi

获取数学常量 pi

IFloatingPointConstants<Single>.Tau

获取数学常量 tau

IFloatingPointIeee754<Single>.Epsilon

获取可添加到不会导致 00 的最小值。

IFloatingPointIeee754<Single>.NaN

获取表示 NaN的值。

IFloatingPointIeee754<Single>.NegativeInfinity

获取表示负 infinity的值。

IFloatingPointIeee754<Single>.NegativeZero

获取表示负 zero的值。

IFloatingPointIeee754<Single>.PositiveInfinity

获取表示正 infinity的值。

IIncrementOperators<Single>.Increment(Single)

递增值。

IMinMaxValue<Single>.MaxValue

获取当前类型的最大值。

IMinMaxValue<Single>.MinValue

获取当前类型的最小值。

IModulusOperators<Single,Single,Single>.Modulus(Single, Single)

将两个值相除以计算其模数或余数。

IMultiplicativeIdentity<Single,Single>.MultiplicativeIdentity

获取当前类型的乘法标识。

IMultiplyOperators<Single,Single,Single>.Multiply(Single, Single)

将两个值相乘以计算其产品。

INumberBase<Single>.IsCanonical(Single)

确定某个值是否在其规范表示形式中。

INumberBase<Single>.IsComplexNumber(Single)

确定值是否表示复数。

INumberBase<Single>.IsImaginaryNumber(Single)

确定值是否表示纯虚数。

INumberBase<Single>.IsZero(Single)

确定值是否为零。

INumberBase<Single>.One

获取类型 1 的值。

INumberBase<Single>.Radix

获取类型的基数或基数。

INumberBase<Single>.TryConvertFromChecked<TOther>(TOther, Single)

表示单精度浮点数。

INumberBase<Single>.TryConvertFromSaturating<TOther>(TOther, Single)

表示单精度浮点数。

INumberBase<Single>.TryConvertFromTruncating<TOther>(TOther, Single)

表示单精度浮点数。

INumberBase<Single>.TryConvertToChecked<TOther>(Single, TOther)

尝试将当前类型的实例转换为另一种类型,为超出当前类型可表示范围的任何值引发溢出异常。

INumberBase<Single>.TryConvertToSaturating<TOther>(Single, TOther)

尝试将当前类型的实例转换为另一种类型,使超出当前类型的可表示范围的任何值饱和。

INumberBase<Single>.TryConvertToTruncating<TOther>(Single, TOther)

尝试将当前类型的实例转换为另一种类型,截断属于当前类型的可表示范围之外的任何值。

INumberBase<Single>.Zero

获取类型 0 的值。

ISignedNumber<Single>.NegativeOne

获取类型 -1 的值。

ISubtractionOperators<Single,Single,Single>.Subtraction(Single, Single)

减去两个值以计算其差异。

IUnaryNegationOperators<Single,Single>.UnaryNegation(Single)

计算值的一元求反。

IUnaryPlusOperators<Single,Single>.UnaryPlus(Single)

计算一元加值。

适用于

线程安全性

此类型的所有成员都是线程安全的。 似乎修改实例状态的成员实际上返回使用新值初始化的新实例。 与任何其他类型一样,读取和写入包含此类型的实例的共享变量必须受到锁的保护,以确保线程安全。

另请参阅