1 interface inheriting from IFloatingPoint
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPointIeee754.cs (1)
10
IFloatingPoint
<TSelf>,
1 implementation of IFloatingPoint
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
70
IFloatingPoint
<decimal>,
181 references to IFloatingPoint
PresentationCore.Tests (1)
FluentAssertions\ComparisonHelpers.cs (1)
19
where T : struct,
IFloatingPoint
<T>
System.Numerics.Tensors (47)
System\Numerics\Tensors\netcore\Tensor.cs (22)
392
where T :
IFloatingPoint
<T>
403
where T :
IFloatingPoint
<T>
416
where T :
IFloatingPoint
<T>
427
where T :
IFloatingPoint
<T>
460
public static ref readonly TensorSpan<T> FillGaussianNormalDistribution<T>(in TensorSpan<T> destination, Random? random = null) where T :
IFloatingPoint
<T>
483
public static ref readonly TensorSpan<T> FillUniformDistribution<T>(in TensorSpan<T> destination, Random? random = null) where T :
IFloatingPoint
<T>
3195
where T :
IFloatingPoint
<T>
3208
where T :
IFloatingPoint
<T>
3776
where T :
IFloatingPoint
<T>
3787
where T :
IFloatingPoint
<T>
4959
where T :
IFloatingPoint
<T>
4970
where T :
IFloatingPoint
<T>
5061
where T :
IFloatingPoint
<T>
5072
where T :
IFloatingPoint
<T>
5084
where T :
IFloatingPoint
<T>
5097
where T :
IFloatingPoint
<T>
5108
where T :
IFloatingPoint
<T>
5120
where T :
IFloatingPoint
<T>
5131
where T :
IFloatingPoint
<T>
5143
where T :
IFloatingPoint
<T>
5530
where T :
IFloatingPoint
<T>
5541
where T :
IFloatingPoint
<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (5)
799
where T :
IFloatingPoint
<T>
1110
where T :
IFloatingPoint
<T>
1752
where T :
IFloatingPoint
<T>
1811
where T :
IFloatingPoint
<T>
2105
where T :
IFloatingPoint
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Ceiling.cs (2)
22
where T :
IFloatingPoint
<T> =>
25
private readonly struct CeilingOperator<T> : IUnaryOperator<T, T> where T :
IFloatingPoint
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
23
where TFrom :
IFloatingPoint
<TFrom>
29
where TFrom :
IFloatingPoint
<TFrom>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
23
where TFrom :
IFloatingPoint
<TFrom>
29
where TFrom :
IFloatingPoint
<TFrom>
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (2)
22
where T :
IFloatingPoint
<T> =>
25
private readonly struct FloorOperator<T> : IUnaryOperator<T, T> where T :
IFloatingPoint
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (2)
24
where T :
IFloatingPoint
<T> =>
72
private readonly struct ReciprocalOperator<T> : IUnaryOperator<T, T> where T :
IFloatingPoint
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (8)
25
where T :
IFloatingPoint
<T> =>
40
where T :
IFloatingPoint
<T>
80
public static void Round<T>(ReadOnlySpan<T> x, int digits, Span<T> destination) where T :
IFloatingPoint
<T> =>
98
where T :
IFloatingPoint
<T>
162
private readonly struct RoundToEvenOperator<T> : IUnaryOperator<T, T> where T :
IFloatingPoint
<T>
238
private readonly struct RoundAwayFromZeroOperator<T> : IUnaryOperator<T, T> where T :
IFloatingPoint
<T>
296
where T :
IFloatingPoint
<T>
347
where T :
IFloatingPoint
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Truncate.cs (2)
24
where T :
IFloatingPoint
<T> =>
27
private 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()" />
1129
int
IFloatingPoint
<decimal>.GetExponentByteCount() => sizeof(sbyte);
1131
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetExponentShortestBitLength()" />
1132
int
IFloatingPoint
<decimal>.GetExponentShortestBitLength()
1138
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandByteCount()" />
1139
int
IFloatingPoint
<decimal>.GetSignificandByteCount() => sizeof(ulong) + sizeof(uint);
1141
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandBitLength()" />
1142
int
IFloatingPoint
<decimal>.GetSignificandBitLength() => 96;
1144
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" />
1145
bool
IFloatingPoint
<decimal>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten)
1158
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" />
1159
bool
IFloatingPoint
<decimal>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten)
1172
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" />
1173
bool
IFloatingPoint
<decimal>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten)
1201
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" />
1202
bool
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()" />
699
int
IFloatingPoint
<double>.GetExponentByteCount() => sizeof(short);
701
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetExponentShortestBitLength()" />
702
int
IFloatingPoint
<double>.GetExponentShortestBitLength()
716
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandByteCount()" />
717
int
IFloatingPoint
<double>.GetSignificandByteCount() => sizeof(ulong);
719
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandBitLength()" />
720
int
IFloatingPoint
<double>.GetSignificandBitLength() => 53;
722
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" />
723
bool
IFloatingPoint
<double>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten)
735
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" />
736
bool
IFloatingPoint
<double>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten)
748
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" />
749
bool
IFloatingPoint
<double>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten)
761
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" />
762
bool
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()" />
1342
int
IFloatingPoint
<Half>.GetExponentByteCount() => sizeof(sbyte);
1344
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetExponentShortestBitLength()" />
1345
int
IFloatingPoint
<Half>.GetExponentShortestBitLength()
1359
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandByteCount()" />
1360
int
IFloatingPoint
<Half>.GetSignificandByteCount() => sizeof(ushort);
1362
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandBitLength()" />
1363
int
IFloatingPoint
<Half>.GetSignificandBitLength() => 11;
1365
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" />
1366
bool
IFloatingPoint
<Half>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten)
1379
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" />
1380
bool
IFloatingPoint
<Half>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten)
1393
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" />
1394
bool
IFloatingPoint
<Half>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten)
1406
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" />
1407
bool
IFloatingPoint
<Half>.TryWriteSignificandLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
12
where 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()" />
1010
int
IFloatingPoint
<NFloat>.GetExponentByteCount() => sizeof(NativeExponentType);
1012
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetExponentShortestBitLength()" />
1013
int
IFloatingPoint
<NFloat>.GetExponentShortestBitLength()
1027
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandByteCount()" />
1028
int
IFloatingPoint
<NFloat>.GetSignificandByteCount() => sizeof(NativeSignificandType);
1030
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandBitLength()" />
1031
int
IFloatingPoint
<NFloat>.GetSignificandBitLength()
1040
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" />
1041
bool
IFloatingPoint
<NFloat>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten)
1064
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" />
1065
bool
IFloatingPoint
<NFloat>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten)
1088
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" />
1089
bool
IFloatingPoint
<NFloat>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten)
1112
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" />
1113
bool
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()" />
694
int
IFloatingPoint
<float>.GetExponentByteCount() => sizeof(sbyte);
696
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetExponentShortestBitLength()" />
697
int
IFloatingPoint
<float>.GetExponentShortestBitLength()
711
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandByteCount()" />
712
int
IFloatingPoint
<float>.GetSignificandByteCount() => sizeof(uint);
714
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.GetSignificandBitLength()" />
715
int
IFloatingPoint
<float>.GetSignificandBitLength() => 24;
717
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentBigEndian(Span{byte}, out int)" />
718
bool
IFloatingPoint
<float>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten)
731
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteExponentLittleEndian(Span{byte}, out int)" />
732
bool
IFloatingPoint
<float>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten)
745
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandBigEndian(Span{byte}, out int)" />
746
bool
IFloatingPoint
<float>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten)
758
/// <inheritdoc cref="
IFloatingPoint
{TSelf}.TryWriteSignificandLittleEndian(Span{byte}, out int)" />
759
bool
IFloatingPoint
<float>.TryWriteSignificandLittleEndian(Span<byte> destination, out int bytesWritten)
System.Private.Windows.Core.TestUtilities (2)
ComparisonHelpers.cs (1)
19
where T : struct,
IFloatingPoint
<T>
XUnit\FloatingPointToleranceComparerer.cs (1)
12
where 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)
578
where T : struct,
IFloatingPoint
<T>
617
where T :
IFloatingPoint
<T>
621
where T :
IFloatingPoint
<T>