Disruptive
Programmer
To save time, I'd love to be able to use the mod function in a calculation, this would be fine if I was using integers. But by using reals or doubles I cannot do this.
The algorithm I am using is something like this
(x + y) mod y. All are defined as integers. Any ideas how to do something like this. I want to avoid using if to save time.
Thanks.
The algorithm I am using is something like this
(x + y) mod y. All are defined as integers. Any ideas how to do something like this. I want to avoid using if to save time.
Thanks.