Skip to content

function abs(int) demo

constexpr int abs(int x) { … }

Computes the absolute value of an integer.

Parameters
x Input integer value.
Returns
The absolute value of x.

Since

1.0.0

See also: abs(double)

Defined at library.hpp:247