英語で読む

次の方法で共有


IFloatingPointIeee754<TSelf> インターフェイス

定義

IEEE 754 浮動小数点型を定義します。

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>

型パラメーター

TSelf

インターフェイスを実装する型。

派生
実装

プロパティ

Epsilon

0にならない 0 に追加できる最小の値を取得します。

NaN

NaNを表す値を取得します。

NegativeInfinity

負の infinityを表す値を取得します。

NegativeZero

負の zeroを表す値を取得します。

PositiveInfinity

正の infinityを表す値を取得します。

メソッド

Atan2(TSelf, TSelf)

2 つの値の商のアークタンジェントを計算します。

Atan2Pi(TSelf, TSelf)

2 つの値の商のアークタンジェントを計算し、結果を piで除算します。

BitDecrement(TSelf)

指定した値より小さい値を比較する最大値を返します。

BitIncrement(TSelf)

指定した値より大きい値を比較する最小の値を返します。

CompareTo(Object)

現在のインスタンスを同じ型の別のオブジェクトと比較し、現在のインスタンスが他のオブジェクトと並べ替え順序で同じ位置にあるかどうかを示す整数を返します。

(継承元 IComparable)
CompareTo(T)

現在のインスタンスを同じ型の別のオブジェクトと比較し、現在のインスタンスが他のオブジェクトと並べ替え順序で同じ位置にあるかどうかを示す整数を返します。

(継承元 IComparable<T>)
Equals(T)

現在のオブジェクトが同じ型の別のオブジェクトと等しいかどうかを示します。

(継承元 IEquatable<T>)
FusedMultiplyAdd(TSelf, TSelf, TSelf)

3 つの値の融合乗算加算を計算します。

GetExponentByteCount()

TryWriteExponentLittleEndian(Span<Byte>, Int32)の一部として書き込まれるバイト数を取得します。

(継承元 IFloatingPoint<TSelf>)
GetExponentShortestBitLength()

現在の指数の最短 2 の補数表現の長さをビット単位で取得します。

(継承元 IFloatingPoint<TSelf>)
GetSignificandBitLength()

現在の仮数の長さをビット単位で取得します。

(継承元 IFloatingPoint<TSelf>)
GetSignificandByteCount()

TryWriteSignificandLittleEndian(Span<Byte>, Int32)の一部として書き込まれるバイト数を取得します。

(継承元 IFloatingPoint<TSelf>)
Ieee754Remainder(TSelf, TSelf)

IEEE 754 で指定された 2 つの値の剰余を計算します。

ILogB(TSelf)

値の整数対数を計算します。

Lerp(TSelf, TSelf, TSelf)

指定された重みに基づいて、2 つの値の間で線形補間を実行します。

ReciprocalEstimate(TSelf)

値の逆数の推定値を計算します。

ReciprocalSqrtEstimate(TSelf)

値の逆平方根の推定値を計算します。

ScaleB(TSelf, Int32)

指定した累乗に引き上げられた値とその基数の積を計算します。

ToString(String, IFormatProvider)

指定した形式を使用して、現在のインスタンスの値を書式設定します。

(継承元 IFormattable)
TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

現在のインスタンスの値を UTF-8 として指定されたバイトスパンに書式設定しようとします。

(継承元 IUtf8SpanFormattable)
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

現在のインスタンスの値を指定された文字スパンに書式設定しようとします。

(継承元 ISpanFormattable)
TryWriteExponentBigEndian(Span<Byte>, Int32)

現在の指数をビッグ エンディアン形式で特定のスパンに書き込もうとします。

(継承元 IFloatingPoint<TSelf>)
TryWriteExponentLittleEndian(Span<Byte>, Int32)

現在の指数をリトル エンディアン形式で特定のスパンに書き込もうとします。

(継承元 IFloatingPoint<TSelf>)
TryWriteSignificandBigEndian(Span<Byte>, Int32)

現在の仮数をビッグ エンディアン形式で特定のスパンに書き込もうとします。

(継承元 IFloatingPoint<TSelf>)
TryWriteSignificandLittleEndian(Span<Byte>, Int32)

現在の仮数を、リトル エンディアン形式で特定のスパンに書き込もうとします。

(継承元 IFloatingPoint<TSelf>)
WriteExponentBigEndian(Byte[], Int32)

現在の指数をビッグ エンディアン形式で特定の配列に書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteExponentBigEndian(Byte[])

現在の指数をビッグ エンディアン形式で特定の配列に書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteExponentBigEndian(Span<Byte>)

現在の指数をビッグ エンディアン形式で特定のスパンに書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Byte[], Int32)

現在の指数をリトル エンディアン形式で特定の配列に書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Byte[])

現在の指数をリトル エンディアン形式で特定の配列に書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Span<Byte>)

現在の指数をリトル エンディアン形式で特定のスパンに書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Byte[], Int32)

現在の仮数をビッグ エンディアン形式で特定の配列に書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Byte[])

現在の仮数をビッグ エンディアン形式で特定の配列に書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Span<Byte>)

現在の仮数をビッグ エンディアン形式で特定のスパンに書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteSignificandLittleEndian(Byte[], Int32)

現在の仮数をリトル エンディアン形式で特定の配列に書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteSignificandLittleEndian(Byte[])

現在の仮数をリトル エンディアン形式で特定の配列に書き込みます。

(継承元 IFloatingPoint<TSelf>)
WriteSignificandLittleEndian(Span<Byte>)

現在の仮数をリトル エンディアン形式で特定のスパンに書き込みます。

(継承元 IFloatingPoint<TSelf>)

明示的なインターフェイスの実装

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

現在のインスタンスの値を UTF-8 として指定されたバイトスパンに書式設定しようとします。

(継承元 INumberBase<TSelf>)
IUtf8SpanParsable<TSelf>.Parse(ReadOnlySpan<Byte>, IFormatProvider)

UTF-8 文字のスパンを値に解析します。

(継承元 INumberBase<TSelf>)
IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<Byte>, IFormatProvider, TSelf)

UTF-8 文字のスパンを値に解析しようとします。

(継承元 INumberBase<TSelf>)

適用対象

製品 バージョン
.NET 7, 8, 9, 10