c++ abs
c++ abs
Blog Article
https://docs.vultr.com/cpp/standard-library/cstdlib/abs
c++ abs In C++, the abs() function is used to find the absolute value of an integer or floating-point number. It is defined in the <cmath> or <cstdlib> header. For integers, abs(int n) returns the absolute value, while for floating-point numbers, fabs(double n) (from <cmath>) is used