8 implementations of Abs
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
559static byte INumberBase<byte>.Abs(byte value) => value;
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1437static char INumberBase<char>.Abs(char value) => value;
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1446static UInt128 INumberBase<UInt128>.Abs(UInt128 value) => value;
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
578static ushort INumberBase<ushort>.Abs(ushort value) => value;
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
617static uint INumberBase<uint>.Abs(uint value) => value;
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
616static ulong INumberBase<ulong>.Abs(ulong value) => value;
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
619static nuint INumberBase<nuint>.Abs(nuint value) => value;
System.Runtime.Numerics (1)
System\Numerics\Complex.cs (1)
938static Complex INumberBase<Complex>.Abs(Complex value) => Abs(value);
31 references to Abs
PresentationCore.Tests (2)
FluentAssertions\ComparisonHelpers.cs (2)
15return T.Abs(x > y ? x - y : y - x) <= variance; 106return T.Abs(x > y ? x - y : y - x) <= variance;
System.Numerics.Tensors (7)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
502destination = T.Abs(x);
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (1)
38public static T Invoke(T x) => T.Abs(x);
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (2)
115T resultMag = T.Abs(result); 116T currentMag = T.Abs(current);
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (2)
115T resultMag = T.Abs(result); 116T currentMag = T.Abs(current);
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
315return T.Abs(x) < limit ?
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
558/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1436/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1307/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1041/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1756/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1283/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
672/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
713/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
710/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
705/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1290/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
635/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1038/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1445/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
577/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
616/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
615/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
618/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />
System.Private.Windows.Core.TestUtilities (3)
ComparisonHelpers.cs (2)
15return T.Abs(x > y ? x - y : y - x) <= variance; 106return T.Abs(x > y ? x - y : y - x) <= variance;
XUnit\FloatingPointToleranceComparerer.cs (1)
17public FloatingPointToleranceComparerer(T tolerance) => _tolerance = T.Abs(tolerance);
System.Runtime.Numerics (1)
System\Numerics\Complex.cs (1)
937/// <inheritdoc cref="INumberBase{TSelf}.Abs(TSelf)" />