modulo
-
Hi,
What error are you getting ?
What value are you converting ?
What about adding successful conversion checks ? -
the "%" oprator works only with int
You should use std::fmod(x,y); from cmath if you want to compute a modulo on double.