Added math helper function
parent
c13753ef82
commit
66aa423f27
@ -0,0 +1,6 @@
|
|||||||
|
int signum(int num) {
|
||||||
|
int retval = 0;
|
||||||
|
(num > 0) ? retval = 1 : retval = -1;
|
||||||
|
return retval;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue