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 的详细信息,请参阅 Single 的补充 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)

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

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 升至给定的幂,并减去 1。

Exp2(Single)

提高 2 到给定功率的计算。

Exp2M1(Single)

计算 2 升至给定的幂,并减去 1。

ExpM1(Single)

计算 E 升至给定的幂,并减去 1。

Floor(Single)

计算值的下限。

FusedMultiplyAdd(Single, Single, Single)

计算三个值的融合乘加。

GetHashCode()

返回此实例的哈希代码。

GetTypeCode()

返回值类型 TypeCodeSingle

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)

计算值的以 10 为底的对数。

Log10P1(Single)

计算值加 1 的以 1 为底的对数。

Log2(Single)

计算值的 log2。

Log2P1(Single)

计算值加 1 的以 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,则返回另一个值。

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)

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

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

尝试以 little endian 格式将当前指数写入给定范围。

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

尝试以 big-endian 格式将当前有效值写入给定范围。

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

尝试以 little-endian 格式将当前有效值写入给定范围。

IFloatingPointConstants<Single>.E

获取数学常量 e

IFloatingPointConstants<Single>.Pi

获取数学常量 pi

IFloatingPointConstants<Single>.Tau

获取数学常量 tau

IFloatingPointIeee754<Single>.Epsilon

获取可以添加到 0 的最小值,该值不会导致 0

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)

计算值的一元加号。

适用于

线程安全性

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

另请参阅