1

Closed

Math Extensions for Numeric Types (and Collections of them)

description

For example:
 
public static decimal Abs(this decimal value)
{
return Math.Abs(value);
}
 
public static IEnumerable<decimal> Abs(this IEnumerable<decimal> values)
{
return values.Select(x => Math.Abs(x));
}
 
And possible some more heavy-duty functionality like IsPrime(), etc....
Closed Dec 2, 2012 at 2:11 PM by cgessler
Added with Changeset 70720

comments