Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - I am a beginner, please ask: Which library function is the absolute value function in DEVC++(4.9.9.2)?
I am a beginner, please ask: Which library function is the absolute value function in DEVC++(4.9.9.2)?
If you use the C++ compiler, the include file is cmath.h, if you want to find the absolute value of an integer, use the function abs(int), and if you want to find the absolute value of a real number, use the function fabs(float/double).

If C compiler is used, the include file is math.h, the integer is Abs(int), and the floating point number is fabs(float/double).