mod only works on int

This commit is contained in:
frank 2021-11-04 01:16:09 -04:00
parent dd736f341f
commit 863db5467b
1 changed files with 1 additions and 6 deletions

View File

@ -20,12 +20,7 @@
namespace sb
{
/* Modulus that handles negative and float arguments */
template<typename Number>
Number mod(Number a, Number b)
{
return (b + (a % b)) % b;
}
int mod(int a, int b);
}
#endif