This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a half-precision floating-point number.
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>, IFormattablepublic value class Half : IComparable, IComparable<Half>, IEquatable<Half>, ISpanFormattablepublic 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>, IFormattablepublic readonly struct Half : IComparable, IComparable<Half>, IEquatable<Half>, ISpanFormattablepublic 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 IFormattabletype Half = struct interface ISpanFormattable interface IFormattabletype 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 HalfImplements 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 HalfImplements IComparable, IComparable(Of Half), IEquatable(Of Half), IFormattablePublic Structure HalfImplements IComparable, IComparable(Of Half), IEquatable(Of Half), ISpanFormattablePublic Structure HalfImplements 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)TheHalf value type represents a half-precision 16-bit number with values ranging from negative 65,504 to positive 65,504, as well as positive or negative zero,PositiveInfinity,NegativeInfinity, and not a number (NaN).
This is an IEEE 754-compliantfloat16 type.
| Name | Description |
|---|---|
| E | Gets the mathematical constant |
| Epsilon | Represents the smallest positiveHalf value that is greater than zero. |
| MaxValue | Represents the largest possible value ofHalf. |
| MinValue | Represents the smallest possible value ofHalf. |
| MultiplicativeIdentity | Gets the multiplicative identity of the current type. |
| NaN | Represents not a number. |
| NegativeInfinity | Represents negative infinity. |
| NegativeOne | Gets the value |
| NegativeZero | Gets a value that represents negative |
| One | Gets the value |
| Pi | Gets the mathematical constant |
| PositiveInfinity | Represents positive infinity. |
| Tau | Gets the mathematical constant |
| Zero | Gets the value |
| Name | Description |
|---|---|
| Abs(Half) | Computes the absolute of a value. |
| Acos(Half) | Computes the arc-cosine of a value. |
| Acosh(Half) | Computes the hyperbolic arc-cosine of a value. |
| AcosPi(Half) | Computes the arc-cosine of a value and divides the result by |
| Asin(Half) | Computes the arc-sine of a value. |
| Asinh(Half) | Computes the hyperbolic arc-sine of a value. |
| AsinPi(Half) | Computes the arc-sine of a value and divides the result by |
| Atan(Half) | Computes the arc-tangent of a value. |
| Atan2(Half, Half) | Computes the arc-tangent of the quotient of two values. |
| Atan2Pi(Half, Half) | Computes the arc-tangent for the quotient of two values and divides the result by |
| Atanh(Half) | Computes the hyperbolic arc-tangent of a value. |
| AtanPi(Half) | Computes the arc-tangent of a value and divides the result by pi. |
| BitDecrement(Half) | Decrements a value to the smallest value that compares less than a given value. |
| BitIncrement(Half) | Increments a value to the smallest value that compares greater than a given value. |
| Cbrt(Half) | Computes the cube-root of a value. |
| Ceiling(Half) | Computes the ceiling of a value. |
| Clamp(Half, Half, Half) | Clamps a value to an inclusive minimum and maximum value. |
| ClampNative(Half, Half, Half) | Clamps a value to an inclusive minimum and maximum value using platform-specific behavior for |
| CompareTo(Half) | Compares this instance to a specified half-precision floating-point number and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified half-precision floating-point number. |
| CompareTo(Object) | Compares this instance to a specified object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object. |
| ConvertToInteger<TInteger>(Half) | Converts a value to a specified integer type using saturation on overflow |
| ConvertToIntegerNative<TInteger>(Half) | Converts a value to a specified integer type using platform specific behavior on overflow. |
| CopySign(Half, Half) | Copies the sign of a value to the sign of another value. |
| Cos(Half) | Computes the cosine of a value. |
| Cosh(Half) | Computes the hyperbolic cosine of a value. |
| CosPi(Half) | Computes the cosine of a value that has been multipled by |
| CreateChecked<TOther>(TOther) | Creates an instance of the current type from a value, throwing an overflow exception for any values that fall outside the representable range of the current type. |
| CreateSaturating<TOther>(TOther) | Creates an instance of the current type from a value, saturating any values that fall outside the representable range of the current type. |
| CreateTruncating<TOther>(TOther) | Creates an instance of the current type from a value, truncating any values that fall outside the representable range of the current type. |
| DegreesToRadians(Half) | Converts a given value from degrees to radians. |
| Equals(Half) | Compares this instance for equality with |
| Equals(Object) | Returns a value that indicates whether this instance is equal to the specified |
| Exp(Half) | Computes |
| Exp10(Half) | Computes |
| Exp10M1(Half) | Computes |
| Exp2(Half) | Computes |
| Exp2M1(Half) | Computes |
| ExpM1(Half) | Computes |
| Floor(Half) | Computes the floor of a value. |
| FusedMultiplyAdd(Half, Half, Half) | Computes the fused multiply-add of three values. |
| GetHashCode() | Returns the hash code for this instance. |
| Hypot(Half, Half) | Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle. |
| Ieee754Remainder(Half, Half) | Computes the remainder of two values as specified by IEEE 754. |
| ILogB(Half) | Computes the integer logarithm of a value. |
| IsEvenInteger(Half) | Determines if a value represents an even integral number. |
| IsFinite(Half) | Determines whether the specified value is finite (zero, subnormal, or normal). |
| IsInfinity(Half) | Returns a value indicating whether the specified number evaluates to positive infinity. |
| IsInteger(Half) | Determines if a value represents an integral value. |
| IsNaN(Half) | Determines whether the specified value is not a number. |
| IsNegative(Half) | Determines whether the specified value is negative. |
| IsNegativeInfinity(Half) | Determines whether the specified value is negative infinity. |
| IsNormal(Half) | Determines whether the specified value is normal. |
| IsOddInteger(Half) | Determines if a value represents an odd integral number. |
| IsPositive(Half) | Determines if a value is positive. |
| IsPositiveInfinity(Half) | Determines whether the specified value is positive infinity. |
| IsPow2(Half) | Determines if a value is a power of two. |
| IsRealNumber(Half) | Determines if a value represents a real number. |
| IsSubnormal(Half) | Determines whether the specified value is subnormal. |
| Lerp(Half, Half, Half) | Performs a linear interpolation between two values based on the given weight. |
| Log(Half, Half) | Computes the logarithm of a value in the specified base. |
| Log(Half) | Computes the natural ( |
| Log10(Half) | Computes the base-10 logarithm of a value. |
| Log10P1(Half) | Computes the base-10 logarithm of a value plus one. |
| Log2(Half) | Computes the log2 of a value. |
| Log2P1(Half) | Computes the base-2 logarithm of a value plus one. |
| LogP1(Half) | Computes the natural ( |
| Max(Half, Half) | Compares two values to compute which is greater. |
| MaxMagnitude(Half, Half) | Compares two values to compute which is greater. |
| MaxMagnitudeNumber(Half, Half) | Compares two values to compute which has the greater magnitude and returning the other value if an input is |
| MaxNative(Half, Half) | Compares two values to compute which is greater using platform-specific behavior for |
| MaxNumber(Half, Half) | Compares two values to compute which is greater and returning the other value if an input is |
| Min(Half, Half) | Compares two values to compute which is lesser. |
| MinMagnitude(Half, Half) | Compares two values to compute which is lesser. |
| MinMagnitudeNumber(Half, Half) | Compares two values to compute which has the lesser magnitude and returning the other value if an input is |
| MinNative(Half, Half) | Compares two values to compute which is lesser using platform-specific behavior for |
| MinNumber(Half, Half) | Compares two values to compute which is lesser and returning the other value if an input is |
| MultiplyAddEstimate(Half, Half, Half) | Computes an estimate of ( |
| Parse(ReadOnlySpan<Byte>, IFormatProvider) | Parses a span of UTF-8 characters into a value. |
| Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider) | Parses a span of UTF-8 characters into a value. |
| Parse(ReadOnlySpan<Char>, IFormatProvider) | Parses a span of characters into a value. |
| Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider) | Converts the string representation of a number in a specified style and culture-specific format to its single-precision floating-point number equivalent. |
| Parse(String, IFormatProvider) | Converts the string representation of a number in a specified culture-specific format to its single-precision floating-point number equivalent. |
| Parse(String, NumberStyles, IFormatProvider) | Converts the string representation of a number in a specified style and culture-specific format to its single-precision floating-point number equivalent. |
| Parse(String, NumberStyles) | Converts the string representation of a number in a specified style to its single-precision floating-point number equivalent. |
| Parse(String) | Converts the string representation of a number to its half-precision floating-point number equivalent. |
| Pow(Half, Half) | Computes a value raised to a given power. |
| RadiansToDegrees(Half) | Converts a given value from radians to degrees. |
| ReciprocalEstimate(Half) | Computes an estimate of the reciprocal of a value. |
| ReciprocalSqrtEstimate(Half) | Computes an estimate of the reciprocal square root of a value. |
| RootN(Half, Int32) | Computes the n-th root of a value. |
| Round(Half, Int32, MidpointRounding) | Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven). |
| Round(Half, Int32) | Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven). |
| Round(Half, MidpointRounding) | Rounds a value to the nearest integer using the specified rounding mode. |
| Round(Half) | Rounds a value to the nearest integer using the default rounding mode (ToEven). |
| ScaleB(Half, Int32) | Computes the product of a value and its base-radix raised to the specified power. |
| Sign(Half) | Computes the sign of a value. |
| Sin(Half) | Computes the sine of a value. |
| SinCos(Half) | Computes the sine and cosine of a value. |
| SinCosPi(Half) | Computes the sine and cosine of a value that has been multiplied by |
| Sinh(Half) | Computes the hyperbolic sine of a value. |
| SinPi(Half) | Computes the sine of a value that has been multiplied by |
| Sqrt(Half) | Computes the square-root of a value. |
| Tan(Half) | Computes the tangent of a value. |
| Tanh(Half) | Computes the hyperbolic tangent of a value. |
| TanPi(Half) | Computes the tangent of a value that has been multipled by |
| ToString() | Converts the numeric value of this instance to its equivalent string representation. |
| ToString(IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. |
| ToString(String, IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. |
| ToString(String) | Converts the numeric value of this instance to its equivalent string representation, using the specified format. |
| Truncate(Half) | Truncates a value. |
| TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider) | Tries to format the value of the current instance as UTF-8 into the provided span of bytes. |
| TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) | Tries to format the value of the currentHalf instance into the provided span of characters. |
| TryParse(ReadOnlySpan<Byte>, Half) | Tries to convert a UTF-8 character span containing the string representation of a number to its half-precision floating-point number equivalent. |
| TryParse(ReadOnlySpan<Byte>, IFormatProvider, Half) | Tries to parse a span of UTF-8 characters into a value. |
| TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, Half) | Tries to parse a span of UTF-8 characters into a value. |
| TryParse(ReadOnlySpan<Char>, Half) | Converts the span representation of a number to its half-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed. |
| TryParse(ReadOnlySpan<Char>, IFormatProvider, Half) | Tries to parse a span of characters into a value. |
| TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, Half) | Converts the span representation of a number to its half-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed. |
| TryParse(String, Half) | Converts the string representation of a number to its half-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed. |
| TryParse(String, IFormatProvider, Half) | Tries to parse a string into a value. |
| TryParse(String, NumberStyles, IFormatProvider, Half) | Converts the string representation of a number to its half-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed. |
| Name | Description |
|---|---|
| Addition(Half, Half) | Adds two values together to compute their sum. |
| CheckedExplicit(Half to Byte) | |
| Decrement(Half) | Decrements a value. |
| Division(Half, Half) | Divides two values together to compute their quotient. |
| Equality(Half, Half) | Returns a value that indicates whether two specifiedHalf values are equal. |
| Explicit(Char to Half) | Explicitly converts aChar value to its nearest representable half-precision floating-point value. |
| Explicit(Decimal to Half) | Explicitly converts aDecimal value to its nearest representable half-precision floating-point value. |
| Explicit(Double to Half) | |
| Explicit(Half to Byte) | Explicitly converts a half-precision floating-point value to its nearest representableByte value. |
| Explicit(Half to Char) | Explicitly converts a half-precision floating-point value to its nearest representableChar value. |
| Explicit(Half to Decimal) | Explicitly converts a half-precision floating-point value to its nearest representableDecimal value. |
| Explicit(Half to Double) | |
| Explicit(Half to Int128) | Explicitly converts a half-precision floating-point value to its nearest representableInt128. |
| Explicit(Half to Int16) | Explicitly converts a half-precision floating-point value to its nearest representableInt16 value. |
| Explicit(Half to Int32) | Explicitly converts a half-precision floating-point value to its nearest representableInt32 value. |
| Explicit(Half to Int64) | Explicitly converts a half-precision floating-point value to its nearest representableInt64 value. |
| Explicit(Half to IntPtr) | Explicitly converts a half-precision floating-point value to its nearest representableIntPtr value. |
| Explicit(Half to SByte) | Explicitly converts a half-precision floating-point value to its nearest representableSByte value. |
| Explicit(Half to Single) | |
| Explicit(Half to UInt128) | Explicitly converts a half-precision floating-point value to its nearest representableUInt128. |
| Explicit(Half to UInt16) | Explicitly converts a half-precision floating-point value to its nearest representableUInt16 value. |
| Explicit(Half to UInt32) | Explicitly converts a half-precision floating-point value to its nearest representableUInt32 value. |
| Explicit(Half to UInt64) | Explicitly converts a half-precision floating-point value to its nearest representableUInt64 value. |
| Explicit(Half to UIntPtr) | Explicitly converts a half-precision floating-point value to its nearest representableUIntPtr value. |
| Explicit(Int16 to Half) | Explicitly converts aInt16 value to its nearest representable half-precision floating-point value. |
| Explicit(Int32 to Half) | Explicitly converts aInt32 value to its nearest representable half-precision floating-point value. |
| Explicit(Int64 to Half) | Explicitly converts aInt64 value to its nearest representable half-precision floating-point value. |
| Explicit(IntPtr to Half) | Explicitly converts aIntPtr value to its nearest representable half-precision floating-point value. |
| Explicit(Single to Half) | |
| Explicit(UInt16 to Half) | Explicitly converts aUInt16 value to its nearest representable half-precision floating-point value. |
| Explicit(UInt32 to Half) | Explicitly converts aUInt32 value to its nearest representable half-precision floating-point value. |
| Explicit(UInt64 to Half) | Explicitly converts aUInt64 value to its nearest representable half-precision floating-point value. |
| Explicit(UIntPtr to Half) | Explicitly converts aUIntPtr value to its nearest representable half-precision floating-point value. |
| GreaterThan(Half, Half) | Returns a value that indicates whether a specifiedHalf value is greater than another specifiedHalf value. |
| GreaterThanOrEqual(Half, Half) | Returns a value that indicates whether |
| Implicit(Byte to Half) | Implicitly converts aByte value to its nearest representable half-precision floating-point value. |
| Implicit(SByte to Half) | Implicitly converts aSByte value to its nearest representable half-precision floating-point value. |
| Increment(Half) | Increments a value. |
| Inequality(Half, Half) | Returns a value that indicates whether two specifiedHalf values are not equal. |
| LessThan(Half, Half) | Returns a value that indicates whether a specifiedHalf value is less than another specifiedHalf value. |
| LessThanOrEqual(Half, Half) | Returns a value that indicates whether a specifiedHalf value is less than or equal to another specifiedHalf value. |
| Modulus(Half, Half) | Divides two values together to compute their modulus or remainder. |
| Multiply(Half, Half) | Multiplies two values together to compute their product. |
| Subtraction(Half, Half) | Subtracts two values to compute their difference. |
| UnaryNegation(Half) | Computes the unary negation of a value. |
| UnaryPlus(Half) | Computes the unary plus of a value. |
| Name | Description |
|---|---|
| IAdditiveIdentity<Half,Half>.AdditiveIdentity | Gets the additive identity of the current type. |
| IBinaryNumber<Half>.AllBitsSet | Gets an instance of the binary type in which all bits are set. |
| IBitwiseOperators<Half,Half,Half>.BitwiseAnd(Half, Half) | Computes the bitwise-and of two values. |
| IBitwiseOperators<Half,Half,Half>.BitwiseOr(Half, Half) | Computes the bitwise-or of two values. |
| IBitwiseOperators<Half,Half,Half>.ExclusiveOr(Half, Half) | Computes the exclusive-or of two values. |
| IBitwiseOperators<Half,Half,Half>.OnesComplement(Half) | Computes the ones-complement representation of a given value. |
| IFloatingPoint<Half>.GetExponentByteCount() | Gets the number of bytes that will be written as part ofTryWriteExponentLittleEndian(Span<Byte>, Int32). |
| IFloatingPoint<Half>.GetExponentShortestBitLength() | Gets the length, in bits, of the shortest two's complement representation of the current exponent. |
| IFloatingPoint<Half>.GetSignificandBitLength() | Gets the length, in bits, of the current significand. |
| IFloatingPoint<Half>.GetSignificandByteCount() | Gets the number of bytes that will be written as part ofTryWriteSignificandLittleEndian(Span<Byte>, Int32). |
| IFloatingPoint<Half>.TryWriteExponentBigEndian(Span<Byte>, Int32) | Tries to write the current exponent, in big-endian format, to a given span. |
| IFloatingPoint<Half>.TryWriteExponentLittleEndian(Span<Byte>, Int32) | Tries to write the current exponent, in little-endian format, to a given span. |
| IFloatingPoint<Half>.TryWriteSignificandBigEndian(Span<Byte>, Int32) | Tries to write the current significand, in big-endian format, to a given span. |
| IFloatingPoint<Half>.TryWriteSignificandLittleEndian(Span<Byte>, Int32) | Tries to write the current significand, in little-endian format, to a given span. |
| INumberBase<Half>.IsCanonical(Half) | Determines if a value is in its canonical representation. |
| INumberBase<Half>.IsComplexNumber(Half) | Determines if a value represents a complex number. |
| INumberBase<Half>.IsImaginaryNumber(Half) | Determines if a value represents a pure imaginary number. |
| INumberBase<Half>.IsZero(Half) | Determines if a value is zero. |
| INumberBase<Half>.Radix | Gets the radix, or base, for the type. |
| INumberBase<Half>.TryConvertFromChecked<TOther>(TOther, Half) | |
| INumberBase<Half>.TryConvertFromSaturating<TOther>(TOther, Half) | |
| INumberBase<Half>.TryConvertFromTruncating<TOther>(TOther, Half) | |
| INumberBase<Half>.TryConvertToChecked<TOther>(Half, TOther) | Tries to convert an instance of the the current type to another type, throwing an overflow exception for any values that fall outside the representable range of the current type. |
| INumberBase<Half>.TryConvertToSaturating<TOther>(Half, TOther) | Tries to convert an instance of the the current type to another type, saturating any values that fall outside the representable range of the current type. |
| INumberBase<Half>.TryConvertToTruncating<TOther>(Half, TOther) | Tries to convert an instance of the the current type to another type, truncating any values that fall outside the representable range of the current type. |
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?