語言

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 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 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>
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>
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>
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>
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)
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)
繼承
實作
IComparable IComparable<Half> IComparable<TSelf> IEquatable<Half> IEquatable<TSelf> IFormattable IParsable<Half> IParsable<TSelf> ISpanFormattable ISpanParsable<Half> ISpanParsable<TSelf> IUtf8SpanFormattable IUtf8SpanParsable<Half> IUtf8SpanParsable<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>

備註

Half 值類型代表一個半精度的16位元數字,其值範圍從負65,504到正65,504,以及正或負零、 PositiveInfinity、, NegativeInfinity且非數字(NaN)。

這是符合 float16 IEEE 754 標準的類型。

屬性

名稱 Description
E

得到數學常數 e

Epsilon

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

MaxValue

代表 的最大 Half可能值。

MinValue

代表最小 Half的可能值。

MultiplicativeIdentity

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

NaN

代表的不是數字。

NegativeInfinity

代表負無限。

NegativeOne

取得該類型的數值 -1

NegativeZero

得到一個代表負 zero值的值。

One

取得該類型的數值 1

Pi

得到數學常數 pi

PositiveInfinity

代表正無限。

Tau

得到數學常數 tau

Zero

取得該類型的數值 0

方法

名稱 Description
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)

計算一個值的弧切,並將結果除以圓周率。

BitDecrement(Half)

將一個值遞減到最小且小於給定值的值。

BitIncrement(Half)

將一個值遞增到比某個給定值還要大的最小值。

Cbrt(Half)

計算一個值的立方根。

Ceiling(Half)

計算某個數值的上限。

Clamp(Half, Half, Half)

將值夾在內含最小值和最大值。

ClampNative(Half, Half, Half)

利用平台特定的行為將值夾定為包含的最小值與最大值,且 。NaNNegativeZero

CompareTo(Half)

將此實例與指定的半精度浮點數比較,並回傳一個整數,表示該實例的值是小於、等於還是大於指定的半精度浮點數值。

CompareTo(Object)

將此實例與指定物件比較,並回傳一個整數,表示該實例的值是小於、等於還是大於指定物件的值。

ConvertToInteger<TInteger>(Half)

利用溢位時的飽和將值轉換為指定的整數型別

ConvertToIntegerNative<TInteger>(Half)

利用平台特定的行為在溢位時將值轉換成指定的整數類型。

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, Half)

計算指定基底下某值的對數。

Log(Half)

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

Log10(Half)

計算一個值的以10為底的對數。

Log10P1(Half)

計算一個值加一的以十為底的對數。

Log2(Half)

計算 值的log2。

Log2P1(Half)

計算一個值加一的底數2對數。

LogP1(Half)

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

Max(Half, Half)

比較兩個值與計算,這兩個值更大。

MaxMagnitude(Half, Half)

比較兩個值與計算,這兩個值更大。

MaxMagnitudeNumber(Half, Half)

比較兩個值以計算出哪個大小較大,若輸入為 NaN則返回另一個值。

MaxNative(Half, Half)

比較兩個值以計算,利用平台特定行為計算 NaNNegativeZero

MaxNumber(Half, Half)

比較兩個值以計算較大的值,若輸入為 NaN則返回另一個值。

Min(Half, Half)

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

MinMagnitude(Half, Half)

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

MinMagnitudeNumber(Half, Half)

比較兩個值以計算大小較小的值,若輸入為 NaN則返回另一個值。

MinNative(Half, Half)

比較兩個值,利用平台特定行為計算 NaNNegativeZero,哪個較小。

MinNumber(Half, Half)

比較兩個值以計算一個較小的值,若輸入為 NaN則返回另一個值。

MultiplyAddEstimate(Half, Half, Half)

計算估計值為(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, IFormatProvider)

將指定之特定文化特性格式之數位的字串表示轉換為其對等的單精度浮點數。

Parse(String, NumberStyles, IFormatProvider)

將指定樣式和特定文化特性格式之數位的字串表示轉換為其單精度浮點數對等專案。

Parse(String, NumberStyles)

將指定樣式中數位的字串表示轉換為其單精度浮點數對等專案。

Parse(String)

將數字的字串表示轉換為其半精度浮點數等價物。

Pow(Half, Half)

計算一個提升至給定冪次方的值。

RadiansToDegrees(Half)

將給定值從弧度轉換為度數。

ReciprocalEstimate(Half)

計算值的倒數估計值。

ReciprocalSqrtEstimate(Half)

計算一個值的倒數平方根估計值。

RootN(Half, Int32)

計算一個值的第 n 次根。

Round(Half, Int32, MidpointRounding)

使用預設的四捨五入模式()ToEven將數值四捨五入至指定數量的分數位數。

Round(Half, Int32)

使用預設的四捨五入模式()ToEven將數值四捨五入至指定數量的分數位數。

Round(Half, MidpointRounding)

使用指定的四捨五入模式將值捨入至最近的整數。

Round(Half)

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

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, IFormatProvider)

使用指定的格式和文化特性特定格式資訊,將這個實例的數值轉換為其相等的字串表示。

ToString(String)

使用指定的格式,將這個實例的數值轉換為其相等的字串表示。

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)

將數字的字串表示轉換為其半精度浮點數等價物。 傳回值表示轉換成功或失敗。

TryParsePartial(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, Half, Int32)

表示半精確度浮點數。

TryParsePartial(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, Half, Int32)

表示半精確度浮點數。

TryParsePartial(String, NumberStyles, IFormatProvider, Half, Int32)

表示半精確度浮點數。

運算子

名稱 Description
Addition(Half, Half)

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

CheckedExplicit(Half to Byte)

表示半精確度浮點數。

Decrement(Half)

遞減值。

Division(Half, Half)

將兩個值除以計算其商值。

Equality(Half, Half)

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

Explicit(Char to Half)

明確地將一個 Char 值轉換成其最近可表示的半精度浮點數值。

Explicit(Decimal to Half)

明確地將一個 Decimal 值轉換成其最近可表示的半精度浮點數值。

Explicit(Double to Half)

一個將值Half轉換為 Double 的顯式運算子。

Explicit(Half to Byte)

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

Explicit(Half to Char)

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

Explicit(Half to Decimal)

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

Explicit(Half to Double)

一個將值Double轉換為 Half 的顯式運算子。

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)

一個將值Single轉換為 Half 的顯式運算子。

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)

一個將值Half轉換為 Single 的顯式運算子。

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)

計算值的一元加號。

明確介面實作

名稱 Description
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-complement 表示法。

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)

嘗試將當前的意義以大端序格式寫入給定的區域。

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

嘗試以小端格式寫入給定範圍的當前意義。

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)

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

適用於

另請參閱