Aracılığıyla paylaş


IFloatingPoint<TSelf> Arabirim

Tanım

Kayan nokta türünü tanımlar.

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)

Tür Parametreleri

TSelf

Arabirimi uygulayan tür.

Türetilmiş
Uygulamalar

Yöntemler

Ceiling(TSelf)

Bir değerin tavanını hesaplar.

CompareTo(Object)

Geçerli örneği aynı türdeki başka bir nesneyle karşılaştırır ve geçerli örneğin diğer nesneyle aynı sıralama düzeninde önce geldiğini, izlediğini veya yine aynı konumda yer alıp almadığını belirten bir tamsayı döndürür.

(Devralındığı yer: IComparable)
CompareTo(T)

Geçerli örneği aynı türdeki başka bir nesneyle karşılaştırır ve geçerli örneğin diğer nesneyle aynı sıralama düzeninde önce geldiğini, izlediğini veya yine aynı konumda yer alıp almadığını belirten bir tamsayı döndürür.

(Devralındığı yer: IComparable<T>)
ConvertToInteger<TInteger>(TSelf)

Taşmada doygunluk kullanarak bir değeri belirtilen tamsayı türüne dönüştürür

ConvertToIntegerNative<TInteger>(TSelf)

Taşmada platforma özgü davranışı kullanarak bir değeri belirtilen tamsayı türüne dönüştürür.

Equals(T)

Geçerli nesnenin aynı türdeki başka bir nesneye eşit olup olmadığını gösterir.

(Devralındığı yer: IEquatable<T>)
Floor(TSelf)

Bir değerin tabanını hesaplar.

GetExponentByteCount()

TryWriteExponentLittleEndian(Span<Byte>, Int32)parçası olarak yazılacak bayt sayısını alır.

GetExponentShortestBitLength()

Geçerli üssün en kısa iki tamamlayıcı gösteriminin uzunluğunu bit cinsinden alır.

GetSignificandBitLength()

Geçerli işaret işaretinin bit cinsinden uzunluğunu alır.

GetSignificandByteCount()

TryWriteSignificandLittleEndian(Span<Byte>, Int32)parçası olarak yazılacak bayt sayısını alır.

Round(TSelf)

Varsayılan yuvarlama modunu (ToEven) kullanarak bir değeri en yakın tamsayıya yuvarlar.

Round(TSelf, Int32)

Varsayılan yuvarlama modunu (ToEven) kullanarak değeri belirtilen sayıda kesirli basamağı yuvarlar.

Round(TSelf, Int32, MidpointRounding)

Belirtilen yuvarlama modunu kullanarak değeri belirtilen sayıda kesirli basamağı yuvarlar.

Round(TSelf, MidpointRounding)

Belirtilen yuvarlama modunu kullanarak bir değeri en yakın tamsayıya yuvarlar.

ToString(String, IFormatProvider)

Belirtilen biçimi kullanarak geçerli örneğin değerini biçimlendirin.

(Devralındığı yer: IFormattable)
Truncate(TSelf)

Bir değeri kısaltılır.

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

Geçerli örneğin değerini UTF-8 olarak sağlanan bayt aralığına biçimlendirmeye çalışır.

(Devralındığı yer: IUtf8SpanFormattable)
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Geçerli örneğin değerini sağlanan karakter aralığına biçimlendirmeye çalışır.

(Devralındığı yer: ISpanFormattable)
TryWriteExponentBigEndian(Span<Byte>, Int32)

Geçerli üs büyük endian biçiminde belirli bir yayılmaya yazmaya çalışır.

TryWriteExponentLittleEndian(Span<Byte>, Int32)

Geçerli üssü küçük endian biçiminde belirli bir süreye yazmaya çalışır.

TryWriteSignificandBigEndian(Span<Byte>, Int32)

Geçerli işaret işaretini büyük endian biçiminde belirli bir span'a yazmaya çalışır.

TryWriteSignificandLittleEndian(Span<Byte>, Int32)

Geçerli işaret işaretini küçük endian biçiminde belirli bir span'a yazmaya çalışır.

WriteExponentBigEndian(Byte[])

Geçerli üssü büyük endian biçiminde belirli bir diziye yazar.

WriteExponentBigEndian(Byte[], Int32)

Geçerli üssü büyük endian biçiminde belirli bir diziye yazar.

WriteExponentBigEndian(Span<Byte>)

Geçerli üssü büyük endian biçiminde belirli bir süreye yazar.

WriteExponentLittleEndian(Byte[])

Geçerli üssü küçük endian biçiminde belirli bir diziye yazar.

WriteExponentLittleEndian(Byte[], Int32)

Geçerli üssü küçük endian biçiminde belirli bir diziye yazar.

WriteExponentLittleEndian(Span<Byte>)

Geçerli üs değerini küçük endian biçiminde belirli bir süreye yazar.

WriteSignificandBigEndian(Byte[])

Geçerli işaret işaretini büyük endian biçiminde belirli bir diziye yazar.

WriteSignificandBigEndian(Byte[], Int32)

Geçerli işaret işaretini büyük endian biçiminde belirli bir diziye yazar.

WriteSignificandBigEndian(Span<Byte>)

Geçerli işaret işaretini büyük endian biçiminde belirli bir süreye yazar.

WriteSignificandLittleEndian(Byte[])

Geçerli işaret işaretini küçük endian biçiminde belirli bir diziye yazar.

WriteSignificandLittleEndian(Byte[], Int32)

Geçerli işaret işaretini küçük endian biçiminde belirli bir diziye yazar.

WriteSignificandLittleEndian(Span<Byte>)

Geçerli işaret işaretini küçük endian biçiminde belirli bir süreye yazar.

Belirtik Arabirim Kullanımları

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

Geçerli örneğin değerini UTF-8 olarak sağlanan bayt aralığına biçimlendirmeye çalışır.

(Devralındığı yer: INumberBase<TSelf>)
IUtf8SpanParsable<TSelf>.Parse(ReadOnlySpan<Byte>, IFormatProvider)

UTF-8 karakterlik bir aralığı bir değere ayrıştırıyor.

(Devralındığı yer: INumberBase<TSelf>)
IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<Byte>, IFormatProvider, TSelf)

UTF-8 karakterlik bir aralığı bir değere ayrıştırmaya çalışır.

(Devralındığı yer: INumberBase<TSelf>)

Şunlara uygulanır