1 interface inheriting from IFloatingPoint
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPointIeee754.cs (1)
10IFloatingPoint<TSelf>,
1 implementation of IFloatingPoint
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
70IFloatingPoint<decimal>,
181 references to IFloatingPoint
PresentationCore.Tests (1)
FluentAssertions\ComparisonHelpers.cs (1)
19where T : struct, IFloatingPoint<T>
System.Numerics.Tensors (47)
System\Numerics\Tensors\netcore\Tensor.cs (22)
392where T : IFloatingPoint<T> 403where T : IFloatingPoint<T> 416where T : IFloatingPoint<T> 427where T : IFloatingPoint<T> 460public static ref readonly TensorSpan<T> FillGaussianNormalDistribution<T>(in TensorSpan<T> destination, Random? random = null) where T : IFloatingPoint<T> 483public static ref readonly TensorSpan<T> FillUniformDistribution<T>(in TensorSpan<T> destination, Random? random = null) where T : IFloatingPoint<T> 3195where T : IFloatingPoint<T> 3208where T : IFloatingPoint<T> 3776where T : IFloatingPoint<T> 3787where T : IFloatingPoint<T> 4959where T : IFloatingPoint<T> 4970where T : IFloatingPoint<T> 5061where T : IFloatingPoint<T> 5072where T : IFloatingPoint<T> 5084where T : IFloatingPoint<T> 5097where T : IFloatingPoint<T> 5108where T : IFloatingPoint<T> 5120where T : IFloatingPoint<T> 5131where T : IFloatingPoint<T> 5143where T : IFloatingPoint<T> 5530where T : IFloatingPoint<T> 5541where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (5)
799where T : IFloatingPoint<T> 1110where T : IFloatingPoint<T> 1752where T : IFloatingPoint<T> 1811where T : IFloatingPoint<T> 2105where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Ceiling.cs (2)
22where T : IFloatingPoint<T> => 25private readonly struct CeilingOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
23where TFrom : IFloatingPoint<TFrom> 29where TFrom : IFloatingPoint<TFrom>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
23where TFrom : IFloatingPoint<TFrom> 29where TFrom : IFloatingPoint<TFrom>
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (2)
22where T : IFloatingPoint<T> => 25private readonly struct FloorOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (2)
24where T : IFloatingPoint<T> => 72private readonly struct ReciprocalOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (8)
25where T : IFloatingPoint<T> => 40where T : IFloatingPoint<T> 80public static void Round<T>(ReadOnlySpan<T> x, int digits, Span<T> destination) where T : IFloatingPoint<T> => 98where T : IFloatingPoint<T> 162private readonly struct RoundToEvenOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T> 238private readonly struct RoundAwayFromZeroOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T> 296where T : IFloatingPoint<T> 347where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Truncate.cs (2)
24where T : IFloatingPoint<T> => 27private readonly struct TruncateOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
System.Private.CoreLib (127)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (18)
1120/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToInteger{TInteger}(TSelf)" /> 1124/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToIntegerNative{TInteger}(TSelf)" /> 1128/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentByteCount()" /> 1129int IFloatingPoint<decimal>.GetExponentByteCount() => sizeof(sbyte); 1131/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentShortestBitLength()" /> 1132int IFloatingPoint<decimal>.GetExponentShortestBitLength() 1138/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandByteCount()" /> 1139int IFloatingPoint<decimal>.GetSignificandByteCount() => sizeof(ulong) + sizeof(uint); 1141/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandBitLength()" /> 1142int IFloatingPoint<decimal>.GetSignificandBitLength() => 96; 1144/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" /> 1145bool IFloatingPoint<decimal>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten) 1158/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" /> 1159bool IFloatingPoint<decimal>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten) 1172/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" /> 1173bool IFloatingPoint<decimal>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten) 1201/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" /> 1202bool IFloatingPoint<decimal>.TryWriteSignificandLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Double.cs (25)
654/// <inheritdoc cref="IFloatingPoint{TSelf}.Ceiling(TSelf)" /> 658/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToInteger{TInteger}(TSelf)" /> 663/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToIntegerNative{TInteger}(TSelf)" /> 677/// <inheritdoc cref="IFloatingPoint{TSelf}.Floor(TSelf)" /> 681/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf)" /> 685/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, int)" /> 688/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, MidpointRounding)" /> 691/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, int, MidpointRounding)" /> 694/// <inheritdoc cref="IFloatingPoint{TSelf}.Truncate(TSelf)" /> 698/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentByteCount()" /> 699int IFloatingPoint<double>.GetExponentByteCount() => sizeof(short); 701/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentShortestBitLength()" /> 702int IFloatingPoint<double>.GetExponentShortestBitLength() 716/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandByteCount()" /> 717int IFloatingPoint<double>.GetSignificandByteCount() => sizeof(ulong); 719/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandBitLength()" /> 720int IFloatingPoint<double>.GetSignificandBitLength() => 53; 722/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" /> 723bool IFloatingPoint<double>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten) 735/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" /> 736bool IFloatingPoint<double>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten) 748/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" /> 749bool IFloatingPoint<double>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten) 761/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" /> 762bool IFloatingPoint<double>.TryWriteSignificandLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Half.cs (25)
1312/// <inheritdoc cref="IFloatingPoint{TSelf}.Ceiling(TSelf)" /> 1315/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToInteger{TInteger}(TSelf)" /> 1319/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToIntegerNative{TInteger}(TSelf)" /> 1323/// <inheritdoc cref="IFloatingPoint{TSelf}.Floor(TSelf)" /> 1326/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf)" /> 1329/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, int)" /> 1332/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, MidpointRounding)" /> 1335/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, int, MidpointRounding)" /> 1338/// <inheritdoc cref="IFloatingPoint{TSelf}.Truncate(TSelf)" /> 1341/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentByteCount()" /> 1342int IFloatingPoint<Half>.GetExponentByteCount() => sizeof(sbyte); 1344/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentShortestBitLength()" /> 1345int IFloatingPoint<Half>.GetExponentShortestBitLength() 1359/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandByteCount()" /> 1360int IFloatingPoint<Half>.GetSignificandByteCount() => sizeof(ushort); 1362/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandBitLength()" /> 1363int IFloatingPoint<Half>.GetSignificandBitLength() => 11; 1365/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" /> 1366bool IFloatingPoint<Half>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten) 1379/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" /> 1380bool IFloatingPoint<Half>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten) 1393/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" /> 1394bool IFloatingPoint<Half>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten) 1406/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" /> 1407bool IFloatingPoint<Half>.TryWriteSignificandLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
12where TSelf : IFloatingPoint<TSelf>?
src\libraries\System.Private.CoreLib\src\System\Numerics\INumber.cs (4)
81/// <remarks>For <see cref="IFloatingPoint{TSelf}" /> this method matches the IEEE 754:2019 <c>maximum</c> function. This requires NaN inputs to be propagated back to the caller and for <c>-0.0</c> to be treated as less than <c>+0.0</c>.</remarks> 116/// <remarks>For <see cref="IFloatingPoint{TSelf}" /> this method matches the IEEE 754:2019 <c>maximumNumber</c> function. This requires NaN inputs to not be propagated back to the caller and for <c>-0.0</c> to be treated as less than <c>+0.0</c>.</remarks> 142/// <remarks>For <see cref="IFloatingPoint{TSelf}" /> this method matches the IEEE 754:2019 <c>minimum</c> function. This requires NaN inputs to be propagated back to the caller and for <c>-0.0</c> to be treated as less than <c>+0.0</c>.</remarks> 177/// <remarks>For <see cref="IFloatingPoint{TSelf}" /> this method matches the IEEE 754:2019 <c>minimumNumber</c> function. This requires NaN inputs to not be propagated back to the caller and for <c>-0.0</c> to be treated as less than <c>+0.0</c>.</remarks>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (25)
980/// <inheritdoc cref="IFloatingPoint{TSelf}.Ceiling(TSelf)" /> 983/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToInteger{TInteger}(TSelf)" /> 987/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToIntegerNative{TInteger}(TSelf)" /> 991/// <inheritdoc cref="IFloatingPoint{TSelf}.Floor(TSelf)" /> 994/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf)" /> 997/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, int)" /> 1000/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, MidpointRounding)" /> 1003/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, int, MidpointRounding)" /> 1006/// <inheritdoc cref="IFloatingPoint{TSelf}.Truncate(TSelf)" /> 1009/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentByteCount()" /> 1010int IFloatingPoint<NFloat>.GetExponentByteCount() => sizeof(NativeExponentType); 1012/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentShortestBitLength()" /> 1013int IFloatingPoint<NFloat>.GetExponentShortestBitLength() 1027/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandByteCount()" /> 1028int IFloatingPoint<NFloat>.GetSignificandByteCount() => sizeof(NativeSignificandType); 1030/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandBitLength()" /> 1031int IFloatingPoint<NFloat>.GetSignificandBitLength() 1040/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" /> 1041bool IFloatingPoint<NFloat>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten) 1064/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" /> 1065bool IFloatingPoint<NFloat>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten) 1088/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" /> 1089bool IFloatingPoint<NFloat>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten) 1112/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" /> 1113bool IFloatingPoint<NFloat>.TryWriteSignificandLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (4)
564/// <remarks>For <see cref ="IFloatingPoint{T}" /> this method matches the IEEE 754:2019 <c>maximum</c> function.This requires NaN inputs to be propagated back to the caller and for <c>-0.0</c> to be treated as less than <c>+0.0</c>.</remarks> 595/// <remarks>For <see cref="IFloatingPoint{T}" /> this method matches the IEEE 754:2019 <c>maximumNumber</c> function. This requires NaN inputs to not be propagated back to the caller and for <c>-0.0</c> to be treated as less than <c>+0.0</c>.</remarks> 603/// <remarks>For <see cref ="IFloatingPoint{T}" /> this method matches the IEEE 754:2019 <c>minimum</c> function.This requires NaN inputs to be propagated back to the caller and for <c>-0.0</c> to be treated as less than <c>+0.0</c>.</remarks> 634/// <remarks>For <see cref="IFloatingPoint{T}" /> this method matches the IEEE 754:2019 <c>minimumNumber</c> function. This requires NaN inputs to not be propagated back to the caller and for <c>-0.0</c> to be treated as less than <c>+0.0</c>.</remarks>
src\libraries\System.Private.CoreLib\src\System\Single.cs (25)
649/// <inheritdoc cref="IFloatingPoint{TSelf}.Ceiling(TSelf)" /> 653/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToInteger{TInteger}(TSelf)" /> 658/// <inheritdoc cref="IFloatingPoint{TSelf}.ConvertToIntegerNative{TInteger}(TSelf)" /> 672/// <inheritdoc cref="IFloatingPoint{TSelf}.Floor(TSelf)" /> 676/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf)" /> 680/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, int)" /> 683/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, MidpointRounding)" /> 686/// <inheritdoc cref="IFloatingPoint{TSelf}.Round(TSelf, int, MidpointRounding)" /> 689/// <inheritdoc cref="IFloatingPoint{TSelf}.Truncate(TSelf)" /> 693/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentByteCount()" /> 694int IFloatingPoint<float>.GetExponentByteCount() => sizeof(sbyte); 696/// <inheritdoc cref="IFloatingPoint{TSelf}.GetExponentShortestBitLength()" /> 697int IFloatingPoint<float>.GetExponentShortestBitLength() 711/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandByteCount()" /> 712int IFloatingPoint<float>.GetSignificandByteCount() => sizeof(uint); 714/// <inheritdoc cref="IFloatingPoint{TSelf}.GetSignificandBitLength()" /> 715int IFloatingPoint<float>.GetSignificandBitLength() => 24; 717/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" /> 718bool IFloatingPoint<float>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten) 731/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" /> 732bool IFloatingPoint<float>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten) 745/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" /> 746bool IFloatingPoint<float>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten) 758/// <inheritdoc cref="IFloatingPoint{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" /> 759bool IFloatingPoint<float>.TryWriteSignificandLittleEndian(Span<byte> destination, out int bytesWritten)
System.Private.Windows.Core.TestUtilities (2)
ComparisonHelpers.cs (1)
19where T : struct, IFloatingPoint<T>
XUnit\FloatingPointToleranceComparerer.cs (1)
12where T : struct, IFloatingPoint<T>
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
382[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.IFloatingPoint<>))]
System.Windows.Forms.Primitives.TestUtilities (3)
Extensions\AssertExtensions.cs (3)
578where T : struct, IFloatingPoint<T> 617where T : IFloatingPoint<T> 621where T : IFloatingPoint<T>