9 lines
141 B
C++
9 lines
141 B
C++
11 months ago
|
#ifndef _MATH_HELP
|
||
|
#define _MATH_HELP
|
||
|
int signum(int num) {
|
||
|
int retval = 0;
|
||
|
(num > 0) ? retval = 1 : retval = -1;
|
||
|
return retval;
|
||
|
}
|
||
|
#endif
|