abs in c# without math.absa code example Example: c# convert to absolute value Console.WriteLine($"{Math.Abs(value)}"); // -392 --> 392