Skip to content
halcharger edited this page Apr 2, 2014 · 2 revisions

#####NumericExtensions.Absolute

Given:

var value = -123.45;

Instead of:

Math.Abs(value) == 123.45

We can write:

value.Absolute() == 123.45

And we can write this for integer values too.