Template Function tap::algorithms::getSign

Function Documentation

template<typename T>
int tap::algorithms::getSign(T val)

Returns the sign of the value passed in. Either -1, 0, or 1. Works for all base types and any types that implement construction from an int. Faster than copysign.