IBinaryFloatingPointIeee754<TSelf> 接口

定义

定义以 base-2 格式表示的 IEEE 754 浮点类型。

public interface IBinaryFloatingPointIeee754<TSelf> : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, IUtf8SpanParsable<TSelf>, System.Numerics.IAdditionOperators<TSelf,TSelf,TSelf>, System.Numerics.IAdditiveIdentity<TSelf,TSelf>, System.Numerics.IBinaryNumber<TSelf>, System.Numerics.IBitwiseOperators<TSelf,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.IFloatingPointIeee754<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 : IBinaryFloatingPointIeee754<TSelf>
public interface IBinaryFloatingPointIeee754<TSelf> : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, System.Numerics.IAdditionOperators<TSelf,TSelf,TSelf>, System.Numerics.IAdditiveIdentity<TSelf,TSelf>, System.Numerics.IBinaryNumber<TSelf>, System.Numerics.IBitwiseOperators<TSelf,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.IFloatingPointIeee754<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 : IBinaryFloatingPointIeee754<TSelf>

类型参数

TSelf

实现接口的类型。

派生
实现

方法

CompareTo(Object)

将当前实例与同一类型的另一个对象进行比较,并返回一个整数,该整数指示当前实例在排序顺序中是否与另一个对象位于同一位置。

(继承自 IComparable)
CompareTo(T)

将当前实例与同一类型的另一个对象进行比较,并返回一个整数,该整数指示当前实例在排序顺序中是否与另一个对象位于同一位置。

(继承自 IComparable<T>)
Equals(T)

指示当前对象是否等于同一类型的另一个对象。

(继承自 IEquatable<T>)
GetExponentByteCount()

获取将作为 TryWriteExponentLittleEndian(Span<Byte>, Int32)一部分写入的字节数。

(继承自 IFloatingPoint<TSelf>)
GetExponentShortestBitLength()

获取最短两个指数的补数表示形式的长度(以位为单位)。

(继承自 IFloatingPoint<TSelf>)
GetSignificandBitLength()

获取当前标志的长度(以位为单位)。

(继承自 IFloatingPoint<TSelf>)
GetSignificandByteCount()

获取将作为 TryWriteSignificandLittleEndian(Span<Byte>, Int32)一部分写入的字节数。

(继承自 IFloatingPoint<TSelf>)
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)

尝试将当前指数(采用 big-endian 格式)写入给定范围。

(继承自 IFloatingPoint<TSelf>)
TryWriteExponentLittleEndian(Span<Byte>, Int32)

尝试将当前指数(以小端格式)写入给定范围。

(继承自 IFloatingPoint<TSelf>)
TryWriteSignificandBigEndian(Span<Byte>, Int32)

尝试将当前符号(采用 big-endian 格式)写入给定范围。

(继承自 IFloatingPoint<TSelf>)
TryWriteSignificandLittleEndian(Span<Byte>, Int32)

尝试将当前符号(以小端格式)写入给定范围。

(继承自 IFloatingPoint<TSelf>)
WriteExponentBigEndian(Byte[], Int32)

将当前指数(采用 big-endian 格式)写入给定数组。

(继承自 IFloatingPoint<TSelf>)
WriteExponentBigEndian(Byte[])

将当前指数(采用 big-endian 格式)写入给定数组。

(继承自 IFloatingPoint<TSelf>)
WriteExponentBigEndian(Span<Byte>)

将当前指数(采用 big-endian 格式)写入给定范围。

(继承自 IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Byte[], Int32)

将当前指数(以小端格式)写入给定数组。

(继承自 IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Byte[])

将当前指数(以小端格式)写入给定数组。

(继承自 IFloatingPoint<TSelf>)
WriteExponentLittleEndian(Span<Byte>)

将当前指数(以小端格式)写入给定范围。

(继承自 IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Byte[], Int32)

将当前符号(采用 big-endian 格式)写入给定数组。

(继承自 IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Byte[])

将当前符号(采用 big-endian 格式)写入给定数组。

(继承自 IFloatingPoint<TSelf>)
WriteSignificandBigEndian(Span<Byte>)

将当前符号(采用 big-endian 格式)写入给定范围。

(继承自 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