Auf Englisch lesen

Freigeben über


IFloatingPointIeee754<TSelf> Schnittstelle

Definition

Definiert einen IEEE 754-Gleitkommatyp.

C#
public interface IFloatingPointIeee754<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.IExponentialFunctions<TSelf>, System.Numerics.IFloatingPoint<TSelf>, System.Numerics.IFloatingPointConstants<TSelf>, System.Numerics.IHyperbolicFunctions<TSelf>, System.Numerics.IIncrementOperators<TSelf>, System.Numerics.ILogarithmicFunctions<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.IPowerFunctions<TSelf>, System.Numerics.IRootFunctions<TSelf>, System.Numerics.ISignedNumber<TSelf>, System.Numerics.ISubtractionOperators<TSelf,TSelf,TSelf>, System.Numerics.ITrigonometricFunctions<TSelf>, System.Numerics.IUnaryNegationOperators<TSelf,TSelf>, System.Numerics.IUnaryPlusOperators<TSelf,TSelf> where TSelf : IFloatingPointIeee754<TSelf>
C#
public interface IFloatingPointIeee754<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.IExponentialFunctions<TSelf>, System.Numerics.IFloatingPoint<TSelf>, System.Numerics.IFloatingPointConstants<TSelf>, System.Numerics.IHyperbolicFunctions<TSelf>, System.Numerics.IIncrementOperators<TSelf>, System.Numerics.ILogarithmicFunctions<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.IPowerFunctions<TSelf>, System.Numerics.IRootFunctions<TSelf>, System.Numerics.ISignedNumber<TSelf>, System.Numerics.ISubtractionOperators<TSelf,TSelf,TSelf>, System.Numerics.ITrigonometricFunctions<TSelf>, System.Numerics.IUnaryNegationOperators<TSelf,TSelf>, System.Numerics.IUnaryPlusOperators<TSelf,TSelf> where TSelf : IFloatingPointIeee754<TSelf>

Typparameter

TSelf

Der Typ, der die Schnittstelle implementiert.

Abgeleitet
Implementiert

Eigenschaften

Epsilon

Ruft den kleinsten Wert ab, der 0 hinzugefügt werden kann, was nicht zu 0führt.

NaN

Ruft einen Wert ab, der NaNdarstellt.

NegativeInfinity

Ruft einen Wert ab, der negative infinitydarstellt.

NegativeZero

Ruft einen Wert ab, der negative zerodarstellt.

PositiveInfinity

Ruft einen Wert ab, der positive infinitydarstellt.

Methoden

Atan2(TSelf, TSelf)

Berechnet den Bogen-Tangens für den Quotienten zweier Werte.

Atan2Pi(TSelf, TSelf)

Berechnet den Bogen-Tangens für den Quotienten zweier Werte und dividiert das Ergebnis durch pi.

BitDecrement(TSelf)

Gibt den größten Wert zurück, der kleiner als ein angegebener Wert ist.

BitIncrement(TSelf)

Gibt den kleinsten Wert zurück, der größer als ein angegebener Wert ist.

CompareTo(Object)

Vergleicht die aktuelle Instanz mit einem anderen Objekt desselben Typs und gibt eine ganze Zahl zurück, die angibt, ob die aktuelle Instanz vorgeht, folgt oder in derselben Position in der Sortierreihenfolge wie das andere Objekt auftritt.

(Geerbt von IComparable)
CompareTo(T)

Vergleicht die aktuelle Instanz mit einem anderen Objekt desselben Typs und gibt eine ganze Zahl zurück, die angibt, ob die aktuelle Instanz vorgeht, folgt oder in derselben Position in der Sortierreihenfolge wie das andere Objekt auftritt.

(Geerbt von IComparable<T>)
Equals(T)

Gibt an, ob das aktuelle Objekt einem anderen Objekt desselben Typs entspricht.

(Geerbt von IEquatable<T>)
FusedMultiplyAdd(TSelf, TSelf, TSelf)

Berechnet das fused multiplizierte Add von drei Werten.

GetExponentByteCount()

Ruft die Anzahl der Bytes ab, die als Teil von TryWriteExponentLittleEndian(Span<Byte>, Int32)geschrieben werden.

(Geerbt von IFloatingPoint<TSelf>)
GetExponentShortestBitLength()

Ruft die Länge in Bits der kürzesten zwei Ergänzungsdarstellung des aktuellen Exponenten ab.

(Geerbt von IFloatingPoint<TSelf>)
GetSignificandBitLength()

Ruft die Länge des aktuellen Zeichens in Bits ab.

(Geerbt von IFloatingPoint<TSelf>)
GetSignificandByteCount()

Ruft die Anzahl der Bytes ab, die als Teil von TryWriteSignificandLittleEndian(Span<Byte>, Int32)geschrieben werden.

(Geerbt von IFloatingPoint<TSelf>)
Ieee754Remainder(TSelf, TSelf)

Berechnet den Rest von zwei Werten gemäß IEEE 754.

ILogB(TSelf)

Berechnet den ganzzahligen Logarithmus eines Werts.

Lerp(TSelf, TSelf, TSelf)

Führt eine lineare Interpolation zwischen zwei Werten basierend auf der angegebenen Gewichtung aus.

ReciprocalEstimate(TSelf)

Berechnet eine Schätzung des Kehrwerts eines Werts.

ReciprocalSqrtEstimate(TSelf)

Berechnet eine Schätzung der gegenseitigen Quadratwurzel eines Werts.

ScaleB(TSelf, Int32)

Berechnet das Produkt eines Werts und dessen Basisradiix, das auf die angegebene Leistung angehoben wird.

ToString(String, IFormatProvider)

Formatiert den Wert der aktuellen Instanz mithilfe des angegebenen Formats.

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

Versucht, den Wert der aktuellen Instanz als UTF-8 in die bereitgestellte Bytespanne zu formatieren.

(Geerbt von IUtf8SpanFormattable)
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Versucht, den Wert der aktuellen Instanz in die bereitgestellte Zeichenspanne zu formatieren.

(Geerbt von ISpanFormattable)
TryWriteExponentBigEndian(Span<Byte>, Int32)

Versucht, den aktuellen Exponenten im Big-End-Format in eine bestimmte Spanne zu schreiben.

(Geerbt von IFloatingPoint<TSelf>)
TryWriteExponentLittleEndian(Span<Byte>, Int32)

Versucht, den aktuellen Exponenten in einem kleinen Endenformat in eine bestimmte Spanne zu schreiben.

(Geerbt von IFloatingPoint<TSelf>)
TryWriteSignificandBigEndian(Span<Byte>, Int32)

Versucht, das aktuelle Significand im Big-End-Format in eine bestimmte Spanne zu schreiben.

(Geerbt von IFloatingPoint<TSelf>)
TryWriteSignificandLittleEndian(Span<Byte>, Int32)

Versucht, das aktuelle Significand in little-endian-Format in eine bestimmte Spanne zu schreiben.

(Geerbt von IFloatingPoint<TSelf>)
WriteExponentBigEndian(Byte[], Int32)

Schreibt den aktuellen Exponenten im Big-End-Format in ein bestimmtes Array.

(Geerbt von IFloatingPoint<TSelf>)
WriteExponentBigEndian(Byte[])

Schreibt den aktuellen Exponenten im Big-End-Format in ein bestimmtes Array.

(Geerbt von IFloatingPoint<TSelf>)
WriteExponentBigEndian(Span<Byte>)

Schreibt den aktuellen Exponenten im Big-End-Format auf eine bestimmte Spanne.

(Geerbt von IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Byte[], Int32)

Schreibt den aktuellen Exponenten im little-endischen Format in ein bestimmtes Array.

(Geerbt von IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Byte[])

Schreibt den aktuellen Exponenten im little-endischen Format in ein bestimmtes Array.

(Geerbt von IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Span<Byte>)

Schreibt den aktuellen Exponenten im Kleinen-End-Format auf eine bestimmte Spanne.

(Geerbt von IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Byte[], Int32)

Schreibt das aktuelle Significand im Big-End-Format in ein bestimmtes Array.

(Geerbt von IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Byte[])

Schreibt das aktuelle Significand im Big-End-Format in ein bestimmtes Array.

(Geerbt von IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Span<Byte>)

Schreibt das aktuelle Significand im Big-End-Format auf eine bestimmte Spanne.

(Geerbt von IFloatingPoint<TSelf>)
WriteSignificandLittleEndian(Byte[], Int32)

Schreibt das aktuelle Significand in little-endian format in ein bestimmtes Array.

(Geerbt von IFloatingPoint<TSelf>)
WriteSignificandLittleEndian(Byte[])

Schreibt das aktuelle Significand in little-endian format in ein bestimmtes Array.

(Geerbt von IFloatingPoint<TSelf>)
WriteSignificandLittleEndian(Span<Byte>)

Schreibt das aktuelle Significand (in little-endian)-Format in eine bestimmte Spanne.

(Geerbt von IFloatingPoint<TSelf>)

Explizite Schnittstellenimplementierungen

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

Versucht, den Wert der aktuellen Instanz als UTF-8 in die bereitgestellte Bytespanne zu formatieren.

(Geerbt von INumberBase<TSelf>)
IUtf8SpanParsable<TSelf>.Parse(ReadOnlySpan<Byte>, IFormatProvider)

Analysiert eine Spanne von UTF-8 Zeichen in einen Wert.

(Geerbt von INumberBase<TSelf>)
IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<Byte>, IFormatProvider, TSelf)

Versucht, eine Spanne von UTF-8 Zeichen in einen Wert zu analysieren.

(Geerbt von INumberBase<TSelf>)

Gilt für:

Produkt Versionen
.NET 7, 8, 9, 10