INumber<TSelf>
One
Zero
Abs(TSelf)
Clamp(TSelf, TSelf, TSelf)
Create<TOther>(TOther)
CreateSaturating<TOther>(TOther)
CreateTruncating<TOther>(TOther)
DivRem(TSelf, TSelf)
Max(TSelf, TSelf)
Min(TSelf, TSelf)
Parse(String, NumberStyles, IFormatProvider)
Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)
Sign(TSelf)
TryCreate<TOther>(TOther, TSelf)
TryParse(String, NumberStyles, IFormatProvider, TSelf)
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, TSelf)
net10.0-windows7.0
namespace System
{
[RequiresPreviewFeatures("Generic Math is in preview.", Url = "https://aka.ms/dotnet-warnings/generic-math-preview")]
public interface INumber<TSelf> : IAdditionOperators<TSelf, TSelf, TSelf>, IAdditiveIdentity<TSelf, TSelf>, IComparable, IComparable<TSelf>, IComparisonOperators<TSelf, TSelf>, IDecrementOperators<TSelf>, IDivisionOperators<TSelf, TSelf, TSelf>, IEqualityOperators<TSelf, TSelf>, IEquatable<TSelf>, IFormattable, IIncrementOperators<TSelf>, IModulusOperators<TSelf, TSelf, TSelf>, IMultiplicativeIdentity<TSelf, TSelf>, IMultiplyOperators<TSelf, TSelf, TSelf>, IParseable<TSelf>, ISpanFormattable, ISpanParseable<TSelf>, ISubtractionOperators<TSelf, TSelf, TSelf>, IUnaryNegationOperators<TSelf, TSelf>, IUnaryPlusOperators<TSelf, TSelf>
where TSelf, INumber<TSelf>!
{
static (TSelf Quotient, TSelf Remainder) DivRem(TSelf left, TSelf right);
}
}
.NET | 6.07.08.09.010.0 |
---|---|
Information specific to net10.0 | |
Platforms | This API is only available when you target a specific platform: |
Windows | 7.0 |
Information specific to net10.0-windows7.0 | |
Assemblies | System.Runtime , Version=7.0.0.0, PublicKeyToken=b03f5f7f11d50a3a System.Runtime , Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a |
Referencing | Your project needs a package reference to |
Package | System.Runtime.Experimental (7.0.0-preview.2.22152.2) net7.0 |
Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API