[c++] Can't use modulus on doubles?