B
Bernhard Reinhardt
Hi,
is there a "standard"-library like cmath that contains a signum
function? Searching the web I only found "make your own implementation!".
If I make my own subroutine, I have to decide whether it computes signum
of a int or a float or a double. While the functions containig in cmath
do not care what type the argument is. Besides I can not belief that no
professional implementaion exists.
Regards
Bernhard
is there a "standard"-library like cmath that contains a signum
function? Searching the web I only found "make your own implementation!".
If I make my own subroutine, I have to decide whether it computes signum
of a int or a float or a double. While the functions containig in cmath
do not care what type the argument is. Besides I can not belief that no
professional implementaion exists.
Regards
Bernhard