Half 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示半精確度浮點數。
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 |
取得數學常數 |
Epsilon |
代表大於零的最小正 Half 值。 |
MaxValue |
代表 Half 最大的可能值。 |
MinValue |
代表 Half 最小的可能值。 |
MultiplicativeIdentity |
取得目前型別的乘法識別。 |
NaN |
代表非數值。 |
NegativeInfinity |
表示負無限大。 |
NegativeOne |
取得型別的值 |
NegativeZero |
取得值,表示負 |
One |
取得型別的值 |
Pi |
取得數學常數 |
PositiveInfinity |
表示正無限大。 |
Tau |
取得數學常數 |
Zero |
取得型別的值 |
方法
Abs(Half) |
計算值的絕對值。 |
Acos(Half) |
計算值的反余弦值。 |
Acosh(Half) |
計算值的雙曲反余弦值。 |
AcosPi(Half) |
計算值的反余弦值,並將結果除以 |
Asin(Half) |
計算值的反正弦值。 |
Asinh(Half) |
計算值的雙曲反正弦值。 |
AsinPi(Half) |
計算值的反正弦值,並將結果除以 |
Atan(Half) |
計算值的反正切值。 |
Atan2(Half, Half) |
計算兩個值商的反正切值。 |
Atan2Pi(Half, Half) |
計算兩個值商的反正切值,並將結果除以 |
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) |
計算 已由 |
CreateChecked<TOther>(TOther) |
從值建立目前型別的實例,針對落在目前類型可表示範圍以外的任何值擲回溢位例外狀況。 |
CreateSaturating<TOther>(TOther) |
從值建立目前型別的實例,使落在目前類型可表示範圍以外的任何值飽和。 |
CreateTruncating<TOther>(TOther) |
從值建立目前型別的實例,截斷落在目前類型可表示範圍以外的任何值。 |
DegreesToRadians(Half) |
將指定的值從度轉換為弧度。 |
Equals(Half) |
將這個執行個體與 |
Equals(Object) |
傳回值,這個值表示這個執行個體是否等於指定的 |
Exp(Half) |
|
Exp10(Half) |
|
Exp10M1(Half) |
|
Exp2(Half) |
|
Exp2M1(Half) |
|
ExpM1(Half) |
|
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) |
計算值的自然 ( |
Log(Half, Half) |
計算指定基底中值的對數。 |
Log10(Half) |
計算值的 base-10 對數。 |
Log10P1(Half) |
計算值的 base-10 對數加上一。 |
Log2(Half) |
計算值的 log2。 |
Log2P1(Half) |
計算值的基底 2 對數加上一。 |
LogP1(Half) |
計算值加上一) 對數的自然 ( |
Max(Half, Half) |
比較兩個值與大於的計算。 |
MaxMagnitude(Half, Half) |
比較兩個值與大於的計算。 |
MaxMagnitudeNumber(Half, Half) |
比較兩個值與具有更大大小的計算,如果輸入為 |
MaxNumber(Half, Half) |
比較兩個值與計算,如果輸入為 |
Min(Half, Half) |
比較兩個值與比較較少的計算。 |
MinMagnitude(Half, Half) |
比較兩個值與比較較少的計算。 |
MinMagnitudeNumber(Half, Half) |
比較兩個值與計算,如果輸入為 |
MinNumber(Half, Half) |
比較兩個值與計算,如果輸入為 |
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) |
計算乘 |
Sinh(Half) |
計算值的雙曲正弦值。 |
SinPi(Half) |
計算已乘以 |
Sqrt(Half) |
計算值的平方根。 |
Tan(Half) |
計算值的正切值。 |
Tanh(Half) |
計算值的雙曲正切值。 |
TanPi(Half) |
計算 已由 |
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) |
將數字的字串表示法轉換為其對等半精確度浮點數。 傳回值,該值指出轉換成功或失敗。 |
運算子
明確介面實作
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應