IFloatingPointIeee754<TSelf> Interface

Definition

Defines an IEEE 754 floating-point type.

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>
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>

Type Parameters

TSelf

The type that implements the interface.

Derived
Implements

Properties

Epsilon

Gets the smallest value such that can be added to 0 that does not result in 0.

NaN

Gets a value that represents NaN.

NegativeInfinity

Gets a value that represents negative infinity.

NegativeZero

Gets a value that represents negative zero.

PositiveInfinity

Gets a value that represents positive infinity.

Methods

Atan2(TSelf, TSelf)

Computes the arc-tangent for the quotient of two values.

Atan2Pi(TSelf, TSelf)

Computes the arc-tangent for the quotient of two values and divides the result by pi.

BitDecrement(TSelf)

Returns the largest value that compares less than a specified value.

BitIncrement(TSelf)

Returns the smallest value that compares greater than a specified 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>)
Equals(T)

Indicates whether the current object is equal to another object of the same type.

(Inherited from IEquatable<T>)
FusedMultiplyAdd(TSelf, TSelf, TSelf)

Computes the fused multiply-add of three values.

GetExponentByteCount()

Gets the number of bytes that will be written as part of TryWriteExponentLittleEndian(Span<Byte>, Int32).

(Inherited from IFloatingPoint<TSelf>)
GetExponentShortestBitLength()

Gets the length, in bits, of the shortest two's complement representation of the current exponent.

(Inherited from IFloatingPoint<TSelf>)
GetSignificandBitLength()

Gets the length, in bits, of the current significand.

(Inherited from IFloatingPoint<TSelf>)
GetSignificandByteCount()

Gets the number of bytes that will be written as part of TryWriteSignificandLittleEndian(Span<Byte>, Int32).

(Inherited from IFloatingPoint<TSelf>)
Ieee754Remainder(TSelf, TSelf)

Computes the remainder of two values as specified by IEEE 754.

ILogB(TSelf)

Computes the integer logarithm of a value.

Lerp(TSelf, TSelf, TSelf)

Performs a linear interpolation between two values based on the given weight.

ReciprocalEstimate(TSelf)

Computes an estimate of the reciprocal of a value.

ReciprocalSqrtEstimate(TSelf)

Computes an estimate of the reciprocal square root of a value.

ScaleB(TSelf, Int32)

Computes the product of a value and its base-radix raised to the specified power.

ToString(String, IFormatProvider)

Formats the value of the current instance using the specified format.

(Inherited from IFormattable)
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.

(Inherited from IFloatingPoint<TSelf>)
TryWriteExponentLittleEndian(Span<Byte>, Int32)

Tries to write the current exponent, in little-endian format, to a given span.

(Inherited from IFloatingPoint<TSelf>)
TryWriteSignificandBigEndian(Span<Byte>, Int32)

Tries to write the current significand, in big-endian format, to a given span.

(Inherited from IFloatingPoint<TSelf>)
TryWriteSignificandLittleEndian(Span<Byte>, Int32)

Tries to write the current significand, in little-endian format, to a given span.

(Inherited from IFloatingPoint<TSelf>)
WriteExponentBigEndian(Byte[], Int32)

Writes the current exponent, in big-endian format, to a given array.

(Inherited from IFloatingPoint<TSelf>)
WriteExponentBigEndian(Byte[])

Writes the current exponent, in big-endian format, to a given array.

(Inherited from IFloatingPoint<TSelf>)
WriteExponentBigEndian(Span<Byte>)

Writes the current exponent, in big-endian format, to a given span.

(Inherited from IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Byte[], Int32)

Writes the current exponent, in little-endian format, to a given array.

(Inherited from IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Byte[])

Writes the current exponent, in little-endian format, to a given array.

(Inherited from IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Span<Byte>)

Writes the current exponent, in little-endian format, to a given span.

(Inherited from IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Byte[], Int32)

Writes the current significand, in big-endian format, to a given array.

(Inherited from IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Byte[])

Writes the current significand, in big-endian format, to a given array.

(Inherited from IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Span<Byte>)

Writes the current significand, in big-endian format, to a given span.

(Inherited from IFloatingPoint<TSelf>)
WriteSignificandLittleEndian(Byte[], Int32)

Writes the current significand, in little-endian format, to a given array.

(Inherited from IFloatingPoint<TSelf>)
WriteSignificandLittleEndian(Byte[])

Writes the current significand, in little-endian format, to a given array.

(Inherited from IFloatingPoint<TSelf>)
WriteSignificandLittleEndian(Span<Byte>)

Writes the current significand, in little-endian format, to a given span.

(Inherited from IFloatingPoint<TSelf>)

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

Product Versions
.NET 7, 8, 9