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