15 implementations of IsNaN
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
635
static bool INumberBase<byte>.
IsNaN
(byte value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1515
static bool INumberBase<char>.
IsNaN
(char value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1389
static bool INumberBase<decimal>.
IsNaN
(decimal value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1363
static bool INumberBase<Int128>.
IsNaN
(Int128 value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
735
static bool INumberBase<short>.
IsNaN
(short value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
777
static bool INumberBase<int>.
IsNaN
(int value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
774
static bool INumberBase<long>.
IsNaN
(long value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
797
static bool INumberBase<nint>.
IsNaN
(nint value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
711
static bool INumberBase<sbyte>.
IsNaN
(sbyte value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1560
static bool INumberBase<UInt128>.
IsNaN
(UInt128 value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
640
static bool INumberBase<ushort>.
IsNaN
(ushort value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
705
static bool INumberBase<uint>.
IsNaN
(uint value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
712
static bool INumberBase<ulong>.
IsNaN
(ulong value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
711
static bool INumberBase<nuint>.
IsNaN
(nuint value) => false;
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
4201
static bool INumberBase<BigInteger>.
IsNaN
(BigInteger value) => false;
101 references to IsNaN
System.Linq (17)
System\Linq\Max.cs (5)
125
for (i = 0; i < span.Length && T.
IsNaN
(span[i]); i++) ;
154
while (T.
IsNaN
(value))
197
while (T.
IsNaN
(valueVal))
670
while (TResult.
IsNaN
(value))
718
while (TResult.
IsNaN
(valueVal))
System\Linq\Min.cs (9)
114
else if (T.
IsNaN
(current))
130
if (T.
IsNaN
(value))
151
else if (T.
IsNaN
(x))
182
if (T.
IsNaN
(valueVal))
198
else if (T.
IsNaN
(x))
631
if (TResult.
IsNaN
(value))
652
else if (TResult.
IsNaN
(x))
687
if (TResult.
IsNaN
(valueVal))
703
else if (TResult.
IsNaN
(x))
System\Linq\Sequence.cs (3)
36
if (T.
IsNaN
(start))
46
if (T.
IsNaN
(endInclusive))
56
if (T.
IsNaN
(step))
System.Linq.AsyncEnumerable (3)
System\Linq\Sequence.cs (3)
36
if (T.
IsNaN
(start))
46
if (T.
IsNaN
(endInclusive))
56
if (T.
IsNaN
(step))
System.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (2)
63
if (T.
IsNaN
(result))
71
if (T.
IsNaN
(current))
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (1)
67
public static bool Invoke(T x) => T.
IsNaN
(x);
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (2)
338
if (T.
IsNaN
(curResult))
346
if (T.
IsNaN
(current))
System.Private.CoreLib (24)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
634
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1514
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1388
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1362
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
734
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
776
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
773
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
796
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
3797
if (TFloat.
IsNaN
(value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (1)
1012
if (TNumber.
IsNaN
(value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\INumber.cs (5)
92
if (!TSelf.
IsNaN
(x))
127
if (!TSelf.
IsNaN
(y))
153
if (!TSelf.
IsNaN
(x))
188
if (!TSelf.
IsNaN
(y))
207
if (TSelf.
IsNaN
(value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (3)
289
if (T.
IsNaN
(x))
291
if (T.
IsNaN
(y))
307
else if (T.
IsNaN
(y))
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
710
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1559
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
639
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
704
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
711
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
710
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
System.Private.Windows.Core.TestUtilities (3)
ComparisonHelpers.cs (3)
24
if (T.
IsNaN
(x))
26
return T.
IsNaN
(y);
28
else if (T.
IsNaN
(y))
System.Runtime.Numerics (48)
System\Numerics\BigInteger.cs (1)
4200
/// <inheritdoc cref="INumberBase{TSelf}.
IsNaN
(TSelf)" />
System\Numerics\Complex.Generic.cs (47)
176
if (T.
IsNaN
(x) && T.
IsNaN
(y))
198
if (T.
IsNaN
(c))
203
if (T.
IsNaN
(d))
217
if (T.
IsNaN
(a))
222
if (T.
IsNaN
(b))
234
if (T.
IsNaN
(a))
239
if (T.
IsNaN
(b))
244
if (T.
IsNaN
(c))
249
if (T.
IsNaN
(d))
308
if (T.
IsNaN
(x) && T.
IsNaN
(y))
322
if ((c == T.Zero) && (d == T.Zero) && (!T.
IsNaN
(a) || !T.
IsNaN
(b)))
374
Debug.Assert((x >= T.Zero) || T.
IsNaN
(x));
475
if (T.
IsNaN
(real))
557
T.
IsNaN
(absB) ? T.NaN : T.Zero;
559
else if (T.
IsNaN
(a))
576
re = T.
IsNaN
(re) || T.
IsNaN
(a) ? re : T.CopySign(re, a);
577
im = T.
IsNaN
(im) || T.
IsNaN
(b) ? im : T.CopySign(im, b);
604
if (T.
IsNaN
(real))
683
re = T.IsInfinity(absY) ? T.Pi * T.CreateChecked(0.75) : T.
IsNaN
(absY) ? T.NaN : T.Pi;
688
re = T.IsInfinity(absY) ? T.Pi / T.CreateChecked(4) : T.
IsNaN
(absY) ? T.NaN : T.Zero;
690
im = T.
IsNaN
(absY) ? T.PositiveInfinity : T.NegativeInfinity;
692
else if (T.
IsNaN
(x))
715
if (!T.
IsNaN
(im) && !T.
IsNaN
(y) && T.IsNegative(y))
765
if (T.
IsNaN
(real))
819
im = T.
IsNaN
(absB) ? T.NaN : T.Pi / T.CreateChecked(2);
821
else if (T.
IsNaN
(a))
843
re = T.
IsNaN
(re) || T.
IsNaN
(a) ? re : T.CopySign(re, a);
844
im = T.
IsNaN
(im) || T.
IsNaN
(b) ? im : T.CopySign(im, b);
855
Debug.Assert((x >= T.Zero) || T.
IsNaN
(x));
856
Debug.Assert((y >= T.Zero) || T.
IsNaN
(y));
990
else if (T.
IsNaN
(real))
1020
if (T.
IsNaN
(imaginary))
1029
return new Complex<T>(T.PositiveInfinity, T.
IsNaN
(imaginary) ? T.NaN : T.CopySign(T.Zero, imaginary));
1032
if (T.
IsNaN
(real) || T.
IsNaN
(imaginary))
1339
if ((ax > ay) || T.
IsNaN
(ax))
1408
if ((ax > ay) || T.
IsNaN
(ay))
1469
if ((ax < ay) || T.
IsNaN
(ax))
1529
if ((ax < ay) || T.
IsNaN
(ay))
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Value\Ieee754FloatingPointConverter.cs (1)
187
if (T.
IsNaN
(value))