I have two CGFloat values, and want to calculate the modulo result. Or in other words: I want to know what\'s left if valueA is placed as much as possible into valueB.
If I remember correctly modulo requires 2 ints as its input so you'd need something like:
CGFloat moduloResult = (float)((int)valueB % (int)valueA);
Assuming that valueB and valueA are both floats