math.abs in c# code example
Example 1: unity absolute value
Mathf.Abs(-10.5f)
Example 2: c# convert to absolute value
Console.WriteLine($"{Math.Abs(value)}"); // -392 --> 392
Mathf.Abs(-10.5f)
Console.WriteLine($"{Math.Abs(value)}"); // -392 --> 392