Added math helper function

This commit is contained in:
2024-01-18 19:28:29 -05:00
parent c13753ef82
commit 66aa423f27

6
math-helpers.hpp Normal file
View File

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