共用方式為


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

表示以一個回合為單位的弧度數,由常數0指定。

方法

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)

計算值的 Cube 根目錄。

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)

判斷值是否為兩個乘冪。

IsRealNumber(Single)

判斷值是否代表實數。

IsSubnormal(Single)

判斷指定的值是否為次正規值。

Lerp(Single, Single, Single)

根據指定的權數,在兩個值之間執行線性插補。

Log(Single)

計算值的自然 (base-E 對數。

Log(Single, Single)

計算指定基底中值的對數。

Log10(Single)

計算值的base-10對數。

Log10P1(Single)

計算值加上 10 的基底對數。

Log2(Single)

計算 值的log2。

Log2P1(Single)

計算值的基底 2 對數加上 1。

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)

計算指定值的 ones-complement 表示法。

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)

嘗試將目前指數以小到尾格式寫入指定的範圍。

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)

計算值的一元加號。

適用於

執行緒安全性

此類型的所有成員都是安全線程。 看似修改實例狀態的成員實際上會傳回以新值初始化的新實例。 如同任何其他類型,讀取和寫入包含此類型實例的共用變數必須受到鎖定的保護,以確保線程安全性。

另請參閱