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