Abs(float) Gets the absolute value of num. float abs(float num) Parameters num Type: float Returns float Absolute value of num (if (num >= 0) num else -num).