Half 結構

定義

表示半精確度浮點數。

public value class Half : IComparable, IComparable<Half>, IEquatable<Half>, IFormattable
public value class Half : IComparable, IComparable<Half>, IEquatable<Half>, ISpanFormattable
public value class Half : IComparable<Half>, IEquatable<Half>, IParsable<Half>, ISpanParsable<Half>, System::Numerics::IAdditionOperators<Half, Half, Half>, System::Numerics::IAdditiveIdentity<Half, Half>, System::Numerics::IBinaryFloatingPointIeee754<Half>, System::Numerics::IBinaryNumber<Half>, System::Numerics::IBitwiseOperators<Half, Half, Half>, System::Numerics::IComparisonOperators<Half, Half, bool>, System::Numerics::IDecrementOperators<Half>, System::Numerics::IDivisionOperators<Half, Half, Half>, System::Numerics::IEqualityOperators<Half, Half, bool>, System::Numerics::IExponentialFunctions<Half>, System::Numerics::IFloatingPoint<Half>, System::Numerics::IFloatingPointConstants<Half>, System::Numerics::IFloatingPointIeee754<Half>, System::Numerics::IHyperbolicFunctions<Half>, System::Numerics::IIncrementOperators<Half>, System::Numerics::ILogarithmicFunctions<Half>, System::Numerics::IMinMaxValue<Half>, System::Numerics::IModulusOperators<Half, Half, Half>, System::Numerics::IMultiplicativeIdentity<Half, Half>, System::Numerics::IMultiplyOperators<Half, Half, Half>, System::Numerics::INumber<Half>, System::Numerics::INumberBase<Half>, System::Numerics::IPowerFunctions<Half>, System::Numerics::IRootFunctions<Half>, System::Numerics::ISignedNumber<Half>, System::Numerics::ISubtractionOperators<Half, Half, Half>, System::Numerics::ITrigonometricFunctions<Half>, System::Numerics::IUnaryNegationOperators<Half, Half>, System::Numerics::IUnaryPlusOperators<Half, Half>
public value class Half : IComparable<Half>, IEquatable<Half>, IParsable<Half>, ISpanParsable<Half>, IUtf8SpanParsable<Half>, System::Numerics::IAdditionOperators<Half, Half, Half>, System::Numerics::IAdditiveIdentity<Half, Half>, System::Numerics::IBinaryFloatingPointIeee754<Half>, System::Numerics::IBinaryNumber<Half>, System::Numerics::IBitwiseOperators<Half, Half, Half>, System::Numerics::IComparisonOperators<Half, Half, bool>, System::Numerics::IDecrementOperators<Half>, System::Numerics::IDivisionOperators<Half, Half, Half>, System::Numerics::IEqualityOperators<Half, Half, bool>, System::Numerics::IExponentialFunctions<Half>, System::Numerics::IFloatingPoint<Half>, System::Numerics::IFloatingPointConstants<Half>, System::Numerics::IFloatingPointIeee754<Half>, System::Numerics::IHyperbolicFunctions<Half>, System::Numerics::IIncrementOperators<Half>, System::Numerics::ILogarithmicFunctions<Half>, System::Numerics::IMinMaxValue<Half>, System::Numerics::IModulusOperators<Half, Half, Half>, System::Numerics::IMultiplicativeIdentity<Half, Half>, System::Numerics::IMultiplyOperators<Half, Half, Half>, System::Numerics::INumber<Half>, System::Numerics::INumberBase<Half>, System::Numerics::IPowerFunctions<Half>, System::Numerics::IRootFunctions<Half>, System::Numerics::ISignedNumber<Half>, System::Numerics::ISubtractionOperators<Half, Half, Half>, System::Numerics::ITrigonometricFunctions<Half>, System::Numerics::IUnaryNegationOperators<Half, Half>, System::Numerics::IUnaryPlusOperators<Half, Half>
public readonly struct Half : IComparable, IComparable<Half>, IEquatable<Half>, IFormattable
public readonly struct Half : IComparable, IComparable<Half>, IEquatable<Half>, ISpanFormattable
public readonly struct Half : IComparable<Half>, IEquatable<Half>, IParsable<Half>, ISpanParsable<Half>, System.Numerics.IAdditionOperators<Half,Half,Half>, System.Numerics.IAdditiveIdentity<Half,Half>, System.Numerics.IBinaryFloatingPointIeee754<Half>, System.Numerics.IBinaryNumber<Half>, System.Numerics.IBitwiseOperators<Half,Half,Half>, System.Numerics.IComparisonOperators<Half,Half,bool>, System.Numerics.IDecrementOperators<Half>, System.Numerics.IDivisionOperators<Half,Half,Half>, System.Numerics.IEqualityOperators<Half,Half,bool>, System.Numerics.IExponentialFunctions<Half>, System.Numerics.IFloatingPoint<Half>, System.Numerics.IFloatingPointConstants<Half>, System.Numerics.IFloatingPointIeee754<Half>, System.Numerics.IHyperbolicFunctions<Half>, System.Numerics.IIncrementOperators<Half>, System.Numerics.ILogarithmicFunctions<Half>, System.Numerics.IMinMaxValue<Half>, System.Numerics.IModulusOperators<Half,Half,Half>, System.Numerics.IMultiplicativeIdentity<Half,Half>, System.Numerics.IMultiplyOperators<Half,Half,Half>, System.Numerics.INumber<Half>, System.Numerics.INumberBase<Half>, System.Numerics.IPowerFunctions<Half>, System.Numerics.IRootFunctions<Half>, System.Numerics.ISignedNumber<Half>, System.Numerics.ISubtractionOperators<Half,Half,Half>, System.Numerics.ITrigonometricFunctions<Half>, System.Numerics.IUnaryNegationOperators<Half,Half>, System.Numerics.IUnaryPlusOperators<Half,Half>
public readonly struct Half : IComparable<Half>, IEquatable<Half>, IParsable<Half>, ISpanParsable<Half>, IUtf8SpanParsable<Half>, System.Numerics.IAdditionOperators<Half,Half,Half>, System.Numerics.IAdditiveIdentity<Half,Half>, System.Numerics.IBinaryFloatingPointIeee754<Half>, System.Numerics.IBinaryNumber<Half>, System.Numerics.IBitwiseOperators<Half,Half,Half>, System.Numerics.IComparisonOperators<Half,Half,bool>, System.Numerics.IDecrementOperators<Half>, System.Numerics.IDivisionOperators<Half,Half,Half>, System.Numerics.IEqualityOperators<Half,Half,bool>, System.Numerics.IExponentialFunctions<Half>, System.Numerics.IFloatingPoint<Half>, System.Numerics.IFloatingPointConstants<Half>, System.Numerics.IFloatingPointIeee754<Half>, System.Numerics.IHyperbolicFunctions<Half>, System.Numerics.IIncrementOperators<Half>, System.Numerics.ILogarithmicFunctions<Half>, System.Numerics.IMinMaxValue<Half>, System.Numerics.IModulusOperators<Half,Half,Half>, System.Numerics.IMultiplicativeIdentity<Half,Half>, System.Numerics.IMultiplyOperators<Half,Half,Half>, System.Numerics.INumber<Half>, System.Numerics.INumberBase<Half>, System.Numerics.IPowerFunctions<Half>, System.Numerics.IRootFunctions<Half>, System.Numerics.ISignedNumber<Half>, System.Numerics.ISubtractionOperators<Half,Half,Half>, System.Numerics.ITrigonometricFunctions<Half>, System.Numerics.IUnaryNegationOperators<Half,Half>, System.Numerics.IUnaryPlusOperators<Half,Half>
type Half = struct
    interface IFormattable
type Half = struct
    interface ISpanFormattable
    interface IFormattable
type Half = struct
    interface IFormattable
    interface IParsable<Half>
    interface ISpanFormattable
    interface ISpanParsable<Half>
    interface IAdditionOperators<Half, Half, Half>
    interface IAdditiveIdentity<Half, Half>
    interface IBinaryFloatingPointIeee754<Half>
    interface IBinaryNumber<Half>
    interface IBitwiseOperators<Half, Half, Half>
    interface IComparisonOperators<Half, Half, bool>
    interface IEqualityOperators<Half, Half, bool>
    interface IDecrementOperators<Half>
    interface IDivisionOperators<Half, Half, Half>
    interface IIncrementOperators<Half>
    interface IModulusOperators<Half, Half, Half>
    interface IMultiplicativeIdentity<Half, Half>
    interface IMultiplyOperators<Half, Half, Half>
    interface INumber<Half>
    interface INumberBase<Half>
    interface ISubtractionOperators<Half, Half, Half>
    interface IUnaryNegationOperators<Half, Half>
    interface IUnaryPlusOperators<Half, Half>
    interface IExponentialFunctions<Half>
    interface IFloatingPointConstants<Half>
    interface IFloatingPoint<Half>
    interface ISignedNumber<Half>
    interface IFloatingPointIeee754<Half>
    interface IHyperbolicFunctions<Half>
    interface ILogarithmicFunctions<Half>
    interface IPowerFunctions<Half>
    interface IRootFunctions<Half>
    interface ITrigonometricFunctions<Half>
    interface IMinMaxValue<Half>
type Half = struct
    interface IFormattable
    interface IParsable<Half>
    interface ISpanFormattable
    interface ISpanParsable<Half>
    interface IAdditionOperators<Half, Half, Half>
    interface IAdditiveIdentity<Half, Half>
    interface IBinaryFloatingPointIeee754<Half>
    interface IBinaryNumber<Half>
    interface IBitwiseOperators<Half, Half, Half>
    interface IComparisonOperators<Half, Half, bool>
    interface IEqualityOperators<Half, Half, bool>
    interface IDecrementOperators<Half>
    interface IDivisionOperators<Half, Half, Half>
    interface IIncrementOperators<Half>
    interface IModulusOperators<Half, Half, Half>
    interface IMultiplicativeIdentity<Half, Half>
    interface IMultiplyOperators<Half, Half, Half>
    interface INumber<Half>
    interface INumberBase<Half>
    interface ISubtractionOperators<Half, Half, Half>
    interface IUnaryNegationOperators<Half, Half>
    interface IUnaryPlusOperators<Half, Half>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<Half>
    interface IExponentialFunctions<Half>
    interface IFloatingPointConstants<Half>
    interface IFloatingPoint<Half>
    interface ISignedNumber<Half>
    interface IFloatingPointIeee754<Half>
    interface IHyperbolicFunctions<Half>
    interface ILogarithmicFunctions<Half>
    interface IPowerFunctions<Half>
    interface IRootFunctions<Half>
    interface ITrigonometricFunctions<Half>
    interface IMinMaxValue<Half>
type Half = struct
    interface IFormattable
    interface IParsable<Half>
    interface ISpanFormattable
    interface ISpanParsable<Half>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<Half>
    interface IAdditionOperators<Half, Half, Half>
    interface IAdditiveIdentity<Half, Half>
    interface IBinaryFloatingPointIeee754<Half>
    interface IBinaryNumber<Half>
    interface IBitwiseOperators<Half, Half, Half>
    interface IComparisonOperators<Half, Half, bool>
    interface IEqualityOperators<Half, Half, bool>
    interface IDecrementOperators<Half>
    interface IDivisionOperators<Half, Half, Half>
    interface IIncrementOperators<Half>
    interface IModulusOperators<Half, Half, Half>
    interface IMultiplicativeIdentity<Half, Half>
    interface IMultiplyOperators<Half, Half, Half>
    interface INumber<Half>
    interface INumberBase<Half>
    interface ISubtractionOperators<Half, Half, Half>
    interface IUnaryNegationOperators<Half, Half>
    interface IUnaryPlusOperators<Half, Half>
    interface IExponentialFunctions<Half>
    interface IFloatingPointConstants<Half>
    interface IFloatingPoint<Half>
    interface ISignedNumber<Half>
    interface IFloatingPointIeee754<Half>
    interface IHyperbolicFunctions<Half>
    interface ILogarithmicFunctions<Half>
    interface IPowerFunctions<Half>
    interface IRootFunctions<Half>
    interface ITrigonometricFunctions<Half>
    interface IMinMaxValue<Half>
Public Structure Half
Implements IComparable, IComparable(Of Half), IEquatable(Of Half), IFormattable
Public Structure Half
Implements IComparable, IComparable(Of Half), IEquatable(Of Half), ISpanFormattable
Public Structure Half
Implements IAdditionOperators(Of Half, Half, Half), IAdditiveIdentity(Of Half, Half), IBinaryFloatingPointIeee754(Of Half), IBinaryNumber(Of Half), IBitwiseOperators(Of Half, Half, Half), IComparable(Of Half), IComparisonOperators(Of Half, Half, Boolean), IDecrementOperators(Of Half), IDivisionOperators(Of Half, Half, Half), IEqualityOperators(Of Half, Half, Boolean), IEquatable(Of Half), IExponentialFunctions(Of Half), IFloatingPoint(Of Half), IFloatingPointConstants(Of Half), IFloatingPointIeee754(Of Half), IHyperbolicFunctions(Of Half), IIncrementOperators(Of Half), ILogarithmicFunctions(Of Half), IMinMaxValue(Of Half), IModulusOperators(Of Half, Half, Half), IMultiplicativeIdentity(Of Half, Half), IMultiplyOperators(Of Half, Half, Half), INumber(Of Half), INumberBase(Of Half), IParsable(Of Half), IPowerFunctions(Of Half), IRootFunctions(Of Half), ISignedNumber(Of Half), ISpanParsable(Of Half), ISubtractionOperators(Of Half, Half, Half), ITrigonometricFunctions(Of Half), IUnaryNegationOperators(Of Half, Half), IUnaryPlusOperators(Of Half, Half)
Public Structure Half
Implements IAdditionOperators(Of Half, Half, Half), IAdditiveIdentity(Of Half, Half), IBinaryFloatingPointIeee754(Of Half), IBinaryNumber(Of Half), IBitwiseOperators(Of Half, Half, Half), IComparable(Of Half), IComparisonOperators(Of Half, Half, Boolean), IDecrementOperators(Of Half), IDivisionOperators(Of Half, Half, Half), IEqualityOperators(Of Half, Half, Boolean), IEquatable(Of Half), IExponentialFunctions(Of Half), IFloatingPoint(Of Half), IFloatingPointConstants(Of Half), IFloatingPointIeee754(Of Half), IHyperbolicFunctions(Of Half), IIncrementOperators(Of Half), ILogarithmicFunctions(Of Half), IMinMaxValue(Of Half), IModulusOperators(Of Half, Half, Half), IMultiplicativeIdentity(Of Half, Half), IMultiplyOperators(Of Half, Half, Half), INumber(Of Half), INumberBase(Of Half), IParsable(Of Half), IPowerFunctions(Of Half), IRootFunctions(Of Half), ISignedNumber(Of Half), ISpanParsable(Of Half), ISubtractionOperators(Of Half, Half, Half), ITrigonometricFunctions(Of Half), IUnaryNegationOperators(Of Half, Half), IUnaryPlusOperators(Of Half, Half), IUtf8SpanParsable(Of Half)
繼承
實作
IComparable IComparable<Half> IEquatable<Half> IFormattable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<Half> IParsable<TSelf> ISpanParsable<Half> ISpanParsable<TSelf> IAdditionOperators<Half,Half,Half> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<Half,Half> IAdditiveIdentity<TSelf,TSelf> IBinaryFloatingPointIeee754<Half> IBinaryNumber<Half> IBinaryNumber<TSelf> IBitwiseOperators<Half,Half,Half> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<Half,Half,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<Half> IDecrementOperators<TSelf> IDivisionOperators<Half,Half,Half> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<Half,Half,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IExponentialFunctions<Half> IExponentialFunctions<TSelf> IFloatingPoint<Half> IFloatingPoint<TSelf> IFloatingPointConstants<Half> IFloatingPointConstants<TSelf> IFloatingPointIeee754<Half> IFloatingPointIeee754<TSelf> IHyperbolicFunctions<Half> IHyperbolicFunctions<TSelf> IIncrementOperators<Half> IIncrementOperators<TSelf> ILogarithmicFunctions<Half> ILogarithmicFunctions<TSelf> IMinMaxValue<Half> IModulusOperators<Half,Half,Half> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<Half,Half> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<Half,Half,Half> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<Half> INumber<TSelf> INumberBase<Half> INumberBase<TSelf> IPowerFunctions<Half> IPowerFunctions<TSelf> IRootFunctions<Half> IRootFunctions<TSelf> ISignedNumber<Half> ISignedNumber<TSelf> ISubtractionOperators<Half,Half,Half> ISubtractionOperators<TSelf,TSelf,TSelf> ITrigonometricFunctions<Half> ITrigonometricFunctions<TSelf> IUnaryNegationOperators<Half,Half> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<Half,Half> IUnaryPlusOperators<TSelf,TSelf> IUtf8SpanFormattable IUtf8SpanParsable<Half> IUtf8SpanParsable<TSelf>

備註

Half 值型別代表半精確度 16 位數位,其值範圍從負 65,504 到正數 65,504,以及正數或負零、 PositiveInfinity 、 和 NegativeInfinity 不是數位 () NaN

這是 IEEE 754 相容 float16 類型。

屬性

E

取得數學常數 e

Epsilon

代表大於零的最小正 Half 值。

MaxValue

代表 Half 最大的可能值。

MinValue

代表 Half 最小的可能值。

MultiplicativeIdentity

取得目前型別的乘法識別。

NaN

代表非數值。

NegativeInfinity

表示負無限大。

NegativeOne

取得型別的值 -1

NegativeZero

取得值,表示負 zero 值。

One

取得型別的值 1

Pi

取得數學常數 pi

PositiveInfinity

表示正無限大。

Tau

取得數學常數 tau

Zero

取得型別的值 0

方法

Abs(Half)

計算值的絕對值。

Acos(Half)

計算值的反余弦值。

Acosh(Half)

計算值的雙曲反余弦值。

AcosPi(Half)

計算值的反余弦值,並將結果除以 pi

Asin(Half)

計算值的反正弦值。

Asinh(Half)

計算值的雙曲反正弦值。

AsinPi(Half)

計算值的反正弦值,並將結果除以 pi

Atan(Half)

計算值的反正切值。

Atan2(Half, Half)

計算兩個值商的反正切值。

Atan2Pi(Half, Half)

計算兩個值商的反正切值,並將結果除以 pi

Atanh(Half)

計算值的雙曲反正切值。

AtanPi(Half)

計算值的反正切值,並將結果除以 pi。

BitDecrement(Half)

將值遞減為小於指定值的最小值。

BitIncrement(Half)

將值遞增為與指定值相比較的最小值。

Cbrt(Half)

計算值的 Cube 根目錄。

Ceiling(Half)

計算值的上限。

Clamp(Half, Half, Half)

將值限制為內含最小值和最大值。

CompareTo(Half)

將這個執行個體與指定的半精確度浮點數進行比較,並傳回整數,這個整數表示這個執行個體的值是小於、等於或大於指定的半精確度浮點數。

CompareTo(Object)

比較這個執行個體與特定物件,並且傳回一個整數,指出這個執行個體的值是小於、等於或大於特定物件的值。

CopySign(Half, Half)

將值的正負號複製到另一個值的正負號。

Cos(Half)

計算值的余弦值。

Cosh(Half)

計算值的雙曲余弦值。

CosPi(Half)

計算 已由 pi 多乘之值的余弦值。

CreateChecked<TOther>(TOther)

從值建立目前型別的實例,針對落在目前類型可表示範圍以外的任何值擲回溢位例外狀況。

CreateSaturating<TOther>(TOther)

從值建立目前型別的實例,使落在目前類型可表示範圍以外的任何值飽和。

CreateTruncating<TOther>(TOther)

從值建立目前型別的實例,截斷落在目前類型可表示範圍以外的任何值。

DegreesToRadians(Half)

將指定的值從度轉換為弧度。

Equals(Half)

將這個執行個體與 other 進行相等比較。

Equals(Object)

傳回值,這個值表示這個執行個體是否等於指定的 obj

Exp(Half)

E計算會引發至指定電源。

Exp10(Half)

10計算會引發至指定電源。

Exp10M1(Half)

10計算會引發至指定的乘冪,並減去一個。

Exp2(Half)

2計算會引發至指定電源。

Exp2M1(Half)

2計算會引發至指定的乘冪,並減去一個。

ExpM1(Half)

E計算會引發至指定的乘冪,並減去一個。

Floor(Half)

計算值的底板。

FusedMultiplyAdd(Half, Half, Half)

計算三個值的融合乘法。

GetHashCode()

傳回這個執行個體的雜湊碼。

Hypot(Half, Half)

計算假設有兩個值,代表右角三角形中較短側邊的長度。

Ieee754Remainder(Half, Half)

計算 IEEE 754 所指定兩個值的其餘部分。

ILogB(Half)

計算值的整數對數。

IsEvenInteger(Half)

判斷值是否代表偶數整數。

IsFinite(Half)

判斷指定的值是否為有限 (零、偏低或一般)。

IsInfinity(Half)

傳回值,指出指定數字是否計算結果為正的無限大。

IsInteger(Half)

判斷值是否代表整數值。

IsNaN(Half)

判斷指定的值是否為數字。

IsNegative(Half)

判斷指定的值是否為負數。

IsNegativeInfinity(Half)

判斷指定的值是否為負無限大。

IsNormal(Half)

判斷指定的值是否為正常。

IsOddInteger(Half)

判斷值是否代表奇數整數。

IsPositive(Half)

判斷值是否為正數。

IsPositiveInfinity(Half)

判斷指定的值是否為正無限大。

IsPow2(Half)

判斷值是否為兩個的乘冪。

IsRealNumber(Half)

判斷值是否代表實數。

IsSubnormal(Half)

判斷指定的值是否為偏低。

Lerp(Half, Half, Half)

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

Log(Half)

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

Log(Half, Half)

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

Log10(Half)

計算值的 base-10 對數。

Log10P1(Half)

計算值的 base-10 對數加上一。

Log2(Half)

計算值的 log2。

Log2P1(Half)

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

LogP1(Half)

計算值加上一) 對數的自然 (base-E

Max(Half, Half)

比較兩個值與大於的計算。

MaxMagnitude(Half, Half)

比較兩個值與大於的計算。

MaxMagnitudeNumber(Half, Half)

比較兩個值與具有更大大小的計算,如果輸入為 NaN ,則會傳回另一個值。

MaxNumber(Half, Half)

比較兩個值與計算,如果輸入為 NaN ,則會傳回另一個值。

Min(Half, Half)

比較兩個值與比較較少的計算。

MinMagnitude(Half, Half)

比較兩個值與比較較少的計算。

MinMagnitudeNumber(Half, Half)

比較兩個值與計算,如果輸入為 NaN ,則其大小較小,並傳回其他值。

MinNumber(Half, Half)

比較兩個值與計算,如果輸入為 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(Half, Half)

計算向指定之乘冪引發的值。

RadiansToDegrees(Half)

將指定的值從弧度轉換為度。

ReciprocalEstimate(Half)

計算值的相互值估計值。

ReciprocalSqrtEstimate(Half)

計算值之相互平方根的估計值。

RootN(Half, Int32)

計算值的第 n 個根目錄。

Round(Half)

使用預設四捨五入模式將值四捨五入為最接近的整數, (ToEven) 。

Round(Half, Int32)

使用預設四捨五入模式,將值四捨五入為指定的小數位數, (ToEven) 。

Round(Half, Int32, MidpointRounding)

使用預設四捨五入模式,將值四捨五入為指定的小數位數, (ToEven) 。

Round(Half, MidpointRounding)

使用指定的進位模式,將值四捨五入為最接近的整數。

ScaleB(Half, Int32)

計算值乘積,以及其基底弧度乘以指定的乘冪。

Sign(Half)

計算值的符號。

Sin(Half)

計算值的正弦值。

SinCos(Half)

計算值的正弦和余弦值。

SinCosPi(Half)

計算乘 pi 以 之值的正弦和余弦。

Sinh(Half)

計算值的雙曲正弦值。

SinPi(Half)

計算已乘以 pi 之值的正弦值。

Sqrt(Half)

計算值的平方根。

Tan(Half)

計算值的正切值。

Tanh(Half)

計算值的雙曲正切值。

TanPi(Half)

計算 已由 pi 複寫的值正切值。

ToString()

將這個執行個體的數值轉換為其相等字串表示。

ToString(IFormatProvider)

使用指定的特定文化特性格式資訊,將這個執行個體的數值轉換成它的相等字串表示。

ToString(String)

使用指定格式,將這個執行個體的數值轉換成它的相等字串表示。

ToString(String, IFormatProvider)

使用指定的格式和特定文化特性格式資訊,將這個執行個體的數值轉換成它的相等字串表示。

Truncate(Half)

截斷值。

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

嘗試將目前實例的值格式化為 UTF-8 到提供的位元組範圍。

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

嘗試將目前 Half 執行個體的值格式化為所提供字元範圍。

TryParse(ReadOnlySpan<Byte>, Half)

嘗試將包含數位字串表示的 UTF-8 字元範圍轉換為其對等的半精確度浮點數。

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Half)

嘗試將 UTF-8 字元的範圍剖析為值。

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

嘗試將 UTF-8 字元的範圍剖析為值。

TryParse(ReadOnlySpan<Char>, Half)

將數字的範圍表示法轉換為其對等半精確度浮點數。 傳回值,該值指出轉換成功或失敗。

TryParse(ReadOnlySpan<Char>, IFormatProvider, Half)

嘗試將字元範圍剖析成值。

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

將數字的範圍表示法轉換為其對等半精確度浮點數。 傳回值,該值指出轉換成功或失敗。

TryParse(String, Half)

將數字的字串表示法轉換為其對等半精確度浮點數。 傳回值,該值指出轉換成功或失敗。

TryParse(String, IFormatProvider, Half)

嘗試將字串剖析成值。

TryParse(String, NumberStyles, IFormatProvider, Half)

將數字的字串表示法轉換為其對等半精確度浮點數。 傳回值,該值指出轉換成功或失敗。

運算子

Addition(Half, Half)

將兩個值加在一起,以計算其總和。

CheckedExplicit(Half)

表示半精確度浮點數。

Decrement(Half)

遞減值。

Division(Half, Half)

將兩個值分割在一起,以計算其商數。

Equality(Half, Half)

傳回值,該值表示兩個指定的 Half 值是否相等。

Explicit(Char to Half)

明確將值轉換成 Char 最接近的半精確度浮點值。

Explicit(Decimal to Half)

明確將值轉換成 Decimal 最接近的半精確度浮點值。

Explicit(Double to Half)

Double 值轉換為 Half 的明確運算子。

Explicit(Half to Byte)

明確地將半精確度浮點值轉換為最接近的可 Byte 表示值。

Explicit(Half to Char)

明確地將半精確度浮點值轉換為最接近的可 Char 表示值。

Explicit(Half to Decimal)

明確地將半精確度浮點值轉換為最接近的可 Decimal 表示值。

Explicit(Half to Double)

Half 值轉換為 Double 的明確運算子。

Explicit(Half to Int128)

明確將半精確度浮點值轉換為最接近的可 Int128 表示值。

Explicit(Half to Int16)

明確地將半精確度浮點值轉換為最接近的可 Int16 表示值。

Explicit(Half to Int32)

明確地將半精確度浮點值轉換為最接近的可 Int32 表示值。

Explicit(Half to Int64)

明確地將半精確度浮點值轉換為最接近的可 Int64 表示值。

Explicit(Half to IntPtr)

明確地將半精確度浮點值轉換為最接近的可 IntPtr 表示值。

Explicit(Half to SByte)

明確地將半精確度浮點值轉換為最接近的可 SByte 表示值。

Explicit(Half to Single)

Half 值轉換為 Single 的明確運算子。

Explicit(Half to UInt128)

明確將半精確度浮點值轉換為最接近的可 UInt128 表示值。

Explicit(Half to UInt16)

明確地將半精確度浮點值轉換為最接近的可 UInt16 表示值。

Explicit(Half to UInt32)

明確地將半精確度浮點值轉換為最接近的可 UInt32 表示值。

Explicit(Half to UInt64)

明確地將半精確度浮點值轉換為最接近的可 UInt64 表示值。

Explicit(Half to UIntPtr)

明確地將半精確度浮點值轉換為最接近的可 UIntPtr 表示值。

Explicit(Int16 to Half)

明確將值轉換成 Int16 最接近的半精確度浮點值。

Explicit(Int32 to Half)

明確將值轉換成 Int32 最接近的半精確度浮點值。

Explicit(Int64 to Half)

明確將值轉換成 Int64 最接近的半精確度浮點值。

Explicit(IntPtr to Half)

明確將值轉換成 IntPtr 最接近的半精確度浮點值。

Explicit(Single to Half)

Single 值轉換為 Half 的明確運算子。

Explicit(UInt16 to Half)

明確將值轉換成 UInt16 最接近的半精確度浮點值。

Explicit(UInt32 to Half)

明確將值轉換成 UInt32 最接近的半精確度浮點值。

Explicit(UInt64 to Half)

明確將值轉換成 UInt64 最接近的半精確度浮點值。

Explicit(UIntPtr to Half)

明確將值轉換成 UIntPtr 最接近的半精確度浮點值。

GreaterThan(Half, Half)

傳回值,該值表示指定的 Half 值是否大於另一個指定的 Half 值。

GreaterThanOrEqual(Half, Half)

傳回值,這個值表示 left 是否大於或等於 right

Implicit(Byte to Half)

隱含地將值轉換成 Byte 最接近的半精確度浮點值。

Implicit(SByte to Half)

隱含地將值轉換成 SByte 最接近的半精確度浮點值。

Increment(Half)

遞增值。

Inequality(Half, Half)

傳回值,該值表示兩個指定的 Half 值是否不相等。

LessThan(Half, Half)

傳回值,該值表示指定的 Half 值是否小於另一個指定的 Half 值。

LessThanOrEqual(Half, Half)

傳回值,該值表示指定的 Half 值是否小於或等於另一個指定的 Half 值。

Modulus(Half, Half)

將兩個值分割在一起,以計算其模數或餘數。

Multiply(Half, Half)

將兩個值相乘以計算其產品。

Subtraction(Half, Half)

減去兩個值來計算其差異。

UnaryNegation(Half)

計算值的一元負數。

UnaryPlus(Half)

計算值的一元加號。

明確介面實作

IAdditiveIdentity<Half,Half>.AdditiveIdentity

取得目前類型的加法識別。

IBinaryNumber<Half>.AllBitsSet

取得二進位類型的實例,其中已設定所有位。

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

計算兩個值的位和 。

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

計算兩個值的位或兩個值。

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

計算兩個值的獨佔或兩個值。

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

計算指定值的 ones-補數標記法。

IFloatingPoint<Half>.GetExponentByteCount()

取得將寫入為 的 TryWriteExponentLittleEndian(Span<Byte>, Int32) 位元組數目。

IFloatingPoint<Half>.GetExponentShortestBitLength()

取得目前指數之最短兩個補數標記法的長度,以位為單位。

IFloatingPoint<Half>.GetSignificandBitLength()

取得目前符號的長度,以位為單位。

IFloatingPoint<Half>.GetSignificandByteCount()

取得將寫入為 的 TryWriteSignificandLittleEndian(Span<Byte>, Int32) 位元組數目。

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

嘗試以大端格式將目前的指數寫入指定的範圍。

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

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

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

嘗試以大端格式將目前的 significand 寫入指定的範圍。

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

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

INumberBase<Half>.IsCanonical(Half)

判斷值是否在其標準表示中。

INumberBase<Half>.IsComplexNumber(Half)

判斷值是否代表複數。

INumberBase<Half>.IsImaginaryNumber(Half)

判斷值是否代表純虛數。

INumberBase<Half>.IsZero(Half)

判斷值是否為零。

INumberBase<Half>.Radix

取得類型的基數或基底。

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

表示半精確度浮點數。

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

表示半精確度浮點數。

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

表示半精確度浮點數。

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

嘗試將目前型別的實例轉換成另一個型別,針對落在目前類型可表示範圍以外的任何值擲回溢位例外狀況。

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

嘗試將目前型別的實例轉換成另一個類型,使任何落在目前類型可表示範圍以外的值飽和。

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

嘗試將目前型別的實例轉換成另一個型別,並截斷任何落在目前類型之可表示範圍以外的值。

適用於

另請參閱