how to get absolute value c sharp code example Example: c# absolute value int n = -5; int abs_n = Math.Abs(n);