Working energy: find the absolute value of an integer.
Usage: int abs(int i)
The expanded data also includes fabs in C language, which is also an absolute value. (There are similar functions in the Java language. )
function
Format: ABS ()
Function: Find the absolute value of the expression.
Description: The return value type of the function is the same as the data type of the numerical expression.
For example, the value of Abs(-3.7) is 3.7.
Different from abs in C language.
References:
Abs- Baidu encyclopedia