IFloatingPoint<TSelf> Interface
Definition
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.
Defines a floating-point type.
generic <typename TSelf>
where TSelf : IFloatingPoint<TSelf>public interface class IFloatingPoint : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, System::Numerics::IAdditionOperators<TSelf, TSelf, TSelf>, System::Numerics::IAdditiveIdentity<TSelf, TSelf>, System::Numerics::IComparisonOperators<TSelf, TSelf, bool>, System::Numerics::IDecrementOperators<TSelf>, System::Numerics::IDivisionOperators<TSelf, TSelf, TSelf>, System::Numerics::IEqualityOperators<TSelf, TSelf, bool>, System::Numerics::IFloatingPointConstants<TSelf>, System::Numerics::IIncrementOperators<TSelf>, System::Numerics::IModulusOperators<TSelf, TSelf, TSelf>, System::Numerics::IMultiplicativeIdentity<TSelf, TSelf>, System::Numerics::IMultiplyOperators<TSelf, TSelf, TSelf>, System::Numerics::INumber<TSelf>, System::Numerics::INumberBase<TSelf>, System::Numerics::ISignedNumber<TSelf>, System::Numerics::ISubtractionOperators<TSelf, TSelf, TSelf>, System::Numerics::IUnaryNegationOperators<TSelf, TSelf>, System::Numerics::IUnaryPlusOperators<TSelf, TSelf>
generic <typename TSelf>
where TSelf : IFloatingPoint<TSelf>public interface class IFloatingPoint : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, IUtf8SpanParsable<TSelf>, System::Numerics::IAdditionOperators<TSelf, TSelf, TSelf>, System::Numerics::IAdditiveIdentity<TSelf, TSelf>, System::Numerics::IComparisonOperators<TSelf, TSelf, bool>, System::Numerics::IDecrementOperators<TSelf>, System::Numerics::IDivisionOperators<TSelf, TSelf, TSelf>, System::Numerics::IEqualityOperators<TSelf, TSelf, bool>, System::Numerics::IFloatingPointConstants<TSelf>, System::Numerics::IIncrementOperators<TSelf>, System::Numerics::IModulusOperators<TSelf, TSelf, TSelf>, System::Numerics::IMultiplicativeIdentity<TSelf, TSelf>, System::Numerics::IMultiplyOperators<TSelf, TSelf, TSelf>, System::Numerics::INumber<TSelf>, System::Numerics::INumberBase<TSelf>, System::Numerics::ISignedNumber<TSelf>, System::Numerics::ISubtractionOperators<TSelf, TSelf, TSelf>, System::Numerics::IUnaryNegationOperators<TSelf, TSelf>, System::Numerics::IUnaryPlusOperators<TSelf, TSelf>
public interface IFloatingPoint<TSelf> : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, System.Numerics.IAdditionOperators<TSelf,TSelf,TSelf>, System.Numerics.IAdditiveIdentity<TSelf,TSelf>, System.Numerics.IComparisonOperators<TSelf,TSelf,bool>, System.Numerics.IDecrementOperators<TSelf>, System.Numerics.IDivisionOperators<TSelf,TSelf,TSelf>, System.Numerics.IEqualityOperators<TSelf,TSelf,bool>, System.Numerics.IFloatingPointConstants<TSelf>, System.Numerics.IIncrementOperators<TSelf>, System.Numerics.IModulusOperators<TSelf,TSelf,TSelf>, System.Numerics.IMultiplicativeIdentity<TSelf,TSelf>, System.Numerics.IMultiplyOperators<TSelf,TSelf,TSelf>, System.Numerics.INumber<TSelf>, System.Numerics.INumberBase<TSelf>, System.Numerics.ISignedNumber<TSelf>, System.Numerics.ISubtractionOperators<TSelf,TSelf,TSelf>, System.Numerics.IUnaryNegationOperators<TSelf,TSelf>, System.Numerics.IUnaryPlusOperators<TSelf,TSelf> where TSelf : IFloatingPoint<TSelf>
public interface IFloatingPoint<TSelf> : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, IUtf8SpanParsable<TSelf>, System.Numerics.IAdditionOperators<TSelf,TSelf,TSelf>, System.Numerics.IAdditiveIdentity<TSelf,TSelf>, System.Numerics.IComparisonOperators<TSelf,TSelf,bool>, System.Numerics.IDecrementOperators<TSelf>, System.Numerics.IDivisionOperators<TSelf,TSelf,TSelf>, System.Numerics.IEqualityOperators<TSelf,TSelf,bool>, System.Numerics.IFloatingPointConstants<TSelf>, System.Numerics.IIncrementOperators<TSelf>, System.Numerics.IModulusOperators<TSelf,TSelf,TSelf>, System.Numerics.IMultiplicativeIdentity<TSelf,TSelf>, System.Numerics.IMultiplyOperators<TSelf,TSelf,TSelf>, System.Numerics.INumber<TSelf>, System.Numerics.INumberBase<TSelf>, System.Numerics.ISignedNumber<TSelf>, System.Numerics.ISubtractionOperators<TSelf,TSelf,TSelf>, System.Numerics.IUnaryNegationOperators<TSelf,TSelf>, System.Numerics.IUnaryPlusOperators<TSelf,TSelf> where TSelf : IFloatingPoint<TSelf>
type IFloatingPoint<'Self (requires 'Self :> IFloatingPoint<'Self>)> = interface
interface IComparable
interface IComparable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IEquatable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IFormattable
interface IParsable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface ISpanFormattable
interface ISpanParsable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IAdditionOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IAdditiveIdentity<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IComparisonOperators<'Self, 'Self, bool (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IEqualityOperators<'Self, 'Self, bool (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IDecrementOperators<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IDivisionOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IFloatingPointConstants<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface INumberBase<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IIncrementOperators<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IMultiplicativeIdentity<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IMultiplyOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface ISubtractionOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IUnaryNegationOperators<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IUnaryPlusOperators<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IModulusOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface INumber<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface ISignedNumber<'Self (requires 'Self :> IFloatingPoint<'Self>)>
type IFloatingPoint<'Self (requires 'Self :> IFloatingPoint<'Self>)> = interface
interface IComparable
interface IComparable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IEquatable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IFormattable
interface IParsable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface ISpanFormattable
interface ISpanParsable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IAdditionOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IAdditiveIdentity<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IComparisonOperators<'Self, 'Self, bool (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IEqualityOperators<'Self, 'Self, bool (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IDecrementOperators<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IDivisionOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IFloatingPointConstants<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface INumberBase<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IIncrementOperators<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IMultiplicativeIdentity<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IMultiplyOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface ISubtractionOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IUnaryNegationOperators<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IUnaryPlusOperators<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IUtf8SpanFormattable
interface IUtf8SpanParsable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IModulusOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface INumber<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface ISignedNumber<'Self (requires 'Self :> IFloatingPoint<'Self>)>
type IFloatingPoint<'Self (requires 'Self :> IFloatingPoint<'Self>)> = interface
interface IComparable
interface IComparable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IEquatable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IFormattable
interface IParsable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface ISpanFormattable
interface ISpanParsable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IAdditionOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IAdditiveIdentity<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IComparisonOperators<'Self, 'Self, bool (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IEqualityOperators<'Self, 'Self, bool (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IDecrementOperators<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IDivisionOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IFloatingPointConstants<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IUtf8SpanFormattable
interface IUtf8SpanParsable<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IIncrementOperators<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface IMultiplicativeIdentity<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IMultiplyOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface INumberBase<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface ISubtractionOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IUnaryNegationOperators<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IUnaryPlusOperators<'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface IModulusOperators<'Self, 'Self, 'Self (requires 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self> and 'Self :> IFloatingPoint<'Self>)>
interface INumber<'Self (requires 'Self :> IFloatingPoint<'Self>)>
interface ISignedNumber<'Self (requires 'Self :> IFloatingPoint<'Self>)>
Public Interface IFloatingPoint(Of TSelf)
Implements IAdditionOperators(Of TSelf, TSelf, TSelf), IAdditiveIdentity(Of TSelf, TSelf), IComparable(Of TSelf), IComparisonOperators(Of TSelf, TSelf, Boolean), IDecrementOperators(Of TSelf), IDivisionOperators(Of TSelf, TSelf, TSelf), IEqualityOperators(Of TSelf, TSelf, Boolean), IEquatable(Of TSelf), IFloatingPointConstants(Of TSelf), IIncrementOperators(Of TSelf), IModulusOperators(Of TSelf, TSelf, TSelf), IMultiplicativeIdentity(Of TSelf, TSelf), IMultiplyOperators(Of TSelf, TSelf, TSelf), INumber(Of TSelf), INumberBase(Of TSelf), IParsable(Of TSelf), ISignedNumber(Of TSelf), ISpanParsable(Of TSelf), ISubtractionOperators(Of TSelf, TSelf, TSelf), IUnaryNegationOperators(Of TSelf, TSelf), IUnaryPlusOperators(Of TSelf, TSelf)
Public Interface IFloatingPoint(Of TSelf)
Implements IAdditionOperators(Of TSelf, TSelf, TSelf), IAdditiveIdentity(Of TSelf, TSelf), IComparable(Of TSelf), IComparisonOperators(Of TSelf, TSelf, Boolean), IDecrementOperators(Of TSelf), IDivisionOperators(Of TSelf, TSelf, TSelf), IEqualityOperators(Of TSelf, TSelf, Boolean), IEquatable(Of TSelf), IFloatingPointConstants(Of TSelf), IIncrementOperators(Of TSelf), IModulusOperators(Of TSelf, TSelf, TSelf), IMultiplicativeIdentity(Of TSelf, TSelf), IMultiplyOperators(Of TSelf, TSelf, TSelf), INumber(Of TSelf), INumberBase(Of TSelf), IParsable(Of TSelf), ISignedNumber(Of TSelf), ISpanParsable(Of TSelf), ISubtractionOperators(Of TSelf, TSelf, TSelf), IUnaryNegationOperators(Of TSelf, TSelf), IUnaryPlusOperators(Of TSelf, TSelf), IUtf8SpanParsable(Of TSelf)
Type Parameters
- TSelf
The type that implements the interface.
- Derived
- Implements
-
IComparable IComparable<TSelf> IEquatable<TSelf> IFormattable IParsable<TSelf> ISpanFormattable ISpanParsable<TSelf> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<TSelf,TSelf> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<TSelf> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IFloatingPointConstants<TSelf> IIncrementOperators<TSelf> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<TSelf> INumberBase<TSelf> ISignedNumber<TSelf> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<TSelf,TSelf> IUtf8SpanFormattable IUtf8SpanParsable<TSelf>
Methods
Ceiling(TSelf) |
Computes the ceiling of a value. |
CompareTo(Object) |
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. (Inherited from IComparable) |
CompareTo(T) |
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. (Inherited from IComparable<T>) |
ConvertToInteger<TInteger>(TSelf) |
Converts a value to a specified integer type using saturation on overflow |
ConvertToIntegerNative<TInteger>(TSelf) |
Converts a value to a specified integer type using platform specific behavior on overflow. |
Equals(T) |
Indicates whether the current object is equal to another object of the same type. (Inherited from IEquatable<T>) |
Floor(TSelf) |
Computes the floor of a value. |
GetExponentByteCount() |
Gets the number of bytes that will be written as part of TryWriteExponentLittleEndian(Span<Byte>, Int32). |
GetExponentShortestBitLength() |
Gets the length, in bits, of the shortest two's complement representation of the current exponent. |
GetSignificandBitLength() |
Gets the length, in bits, of the current significand. |
GetSignificandByteCount() |
Gets the number of bytes that will be written as part of TryWriteSignificandLittleEndian(Span<Byte>, Int32). |
Round(TSelf) |
Rounds a value to the nearest integer using the default rounding mode (ToEven). |
Round(TSelf, Int32) |
Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven). |
Round(TSelf, Int32, MidpointRounding) |
Rounds a value to a specified number of fractional digits using the specified rounding mode. |
Round(TSelf, MidpointRounding) |
Rounds a value to the nearest integer using the specified rounding mode. |
ToString(String, IFormatProvider) |
Formats the value of the current instance using the specified format. (Inherited from IFormattable) |
Truncate(TSelf) |
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. (Inherited from IUtf8SpanFormattable) |
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Tries to format the value of the current instance into the provided span of characters. (Inherited from ISpanFormattable) |
TryWriteExponentBigEndian(Span<Byte>, Int32) |
Tries to write the current exponent, in big-endian format, to a given span. |
TryWriteExponentLittleEndian(Span<Byte>, Int32) |
Tries to write the current exponent, in little-endian format, to a given span. |
TryWriteSignificandBigEndian(Span<Byte>, Int32) |
Tries to write the current significand, in big-endian format, to a given span. |
TryWriteSignificandLittleEndian(Span<Byte>, Int32) |
Tries to write the current significand, in little-endian format, to a given span. |
WriteExponentBigEndian(Byte[]) |
Writes the current exponent, in big-endian format, to a given array. |
WriteExponentBigEndian(Byte[], Int32) |
Writes the current exponent, in big-endian format, to a given array. |
WriteExponentBigEndian(Span<Byte>) |
Writes the current exponent, in big-endian format, to a given span. |
WriteExponentLittleEndian(Byte[]) |
Writes the current exponent, in little-endian format, to a given array. |
WriteExponentLittleEndian(Byte[], Int32) |
Writes the current exponent, in little-endian format, to a given array. |
WriteExponentLittleEndian(Span<Byte>) |
Writes the current exponent, in little-endian format, to a given span. |
WriteSignificandBigEndian(Byte[]) |
Writes the current significand, in big-endian format, to a given array. |
WriteSignificandBigEndian(Byte[], Int32) |
Writes the current significand, in big-endian format, to a given array. |
WriteSignificandBigEndian(Span<Byte>) |
Writes the current significand, in big-endian format, to a given span. |
WriteSignificandLittleEndian(Byte[]) |
Writes the current significand, in little-endian format, to a given array. |
WriteSignificandLittleEndian(Byte[], Int32) |
Writes the current significand, in little-endian format, to a given array. |
WriteSignificandLittleEndian(Span<Byte>) |
Writes the current significand, in little-endian format, to a given span. |
Explicit Interface Implementations
IUtf8SpanFormattable.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. (Inherited from INumberBase<TSelf>) |
IUtf8SpanParsable<TSelf>.Parse(ReadOnlySpan<Byte>, IFormatProvider) |
Parses a span of UTF-8 characters into a value. (Inherited from INumberBase<TSelf>) |
IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<Byte>, IFormatProvider, TSelf) |
Tries to parse a span of UTF-8 characters into a value. (Inherited from INumberBase<TSelf>) |
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre