Patrick Patrick - 1 year ago 136
Objective-C Question

Remainder of float division

How do I compute the remainder of the division of two


Answer Source

How about a-floor(a/b)*b - presuming a and b both positive?

You could say that "remainder" is not a proper concept for float divisions, but I'll leave that to your own judgment.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download