Version: 5.6
public static float Abs (float f);

설명

Returns the absolute value of f.

// prints 10.5
Debug.Log(Mathf.Abs(-10.5));

public static int Abs (int value);

설명

Returns the absolute value of value.

// prints 10
Debug.Log(Mathf.Abs(-10));