function abs(double) demo¶
constexpr double abs(double x) { … }
Computes the absolute value of a floating-point number.
| x | Input floating-point value. |
| The absolute value of x. |
Since
1.1.0
Deprecated
Prefer std::abs for floating-point types.
See also:
abs(int) Defined at library.hpp:255