I have two simple while loops in my program that I feel ought to be math equations, but I\'m struggling to convert them:
float a = someValue; int b = someOtherVa
Assuming b is positive, abs(c) = floor((abs(a) - b/2) / b). Then, apply sign of a to c.