Added math helper function

master
Aadhavan Srinivasan 11 months ago
parent c13753ef82
commit 66aa423f27

@ -0,0 +1,6 @@
int signum(int num) {
int retval = 0;
(num > 0) ? retval = 1 : retval = -1;
return retval;
}
Loading…
Cancel
Save