Template Function ripple::math::sign¶
Defined in File math.hpp
Function Documentation¶
-
template<typename
T
>
constexpr autoripple::math
::
sign
(T x) noexcept -> T¶ Computes the sign of the input, returning -1.0 if x is less than 0.0, 0.0 if x is equal to 0.0, and +1.0 if x is greater than 0.
- Return
The sign of the input.
- Parameters
x
: The value to get the sign of.
- Template Parameters
T
: The type of the data.