We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
template<typename T> int sign(T a) noexcept;
Returns -1, 0 or 1 depending on the sign of a.
-1
0
1
a