-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExtensionMethods.Abs.cs
37 lines (29 loc) · 1009 Bytes
/
ExtensionMethods.Abs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// A part of the C# Language Syntactic Sugar suite.
using System;
namespace CLSS
{
public static partial class CommonMathOps
{
/// <inheritdoc cref="Math.Abs(sbyte)"/>
public static sbyte Abs(this sbyte value)
{ return Math.Abs(value); }
/// <inheritdoc cref="Math.Abs(short)"/>
public static short Abs(this short value)
{ return Math.Abs(value); }
/// <inheritdoc cref="Math.Abs(int)"/>
public static int Abs(this int value)
{ return Math.Abs(value); }
/// <inheritdoc cref="Math.Abs(long)"/>
public static long Abs(this long value)
{ return Math.Abs(value); }
/// <inheritdoc cref="Math.Abs(float)"/>
public static float Abs(this float value)
{ return Math.Abs(value); }
/// <inheritdoc cref="Math.Abs(double)"/>
public static double Abs(this double value)
{ return Math.Abs(value); }
/// <inheritdoc cref="Math.Abs(decimal)"/>
public static decimal Abs(this decimal value)
{ return Math.Abs(value); }
}
}