[PD] div vs. / & i

Jonathan Wilkes jancsika at yahoo.com
Fri Feb 6 10:04:39 CET 2009

This is puzzling me.

I've been using [div] as the equivalent to


But I just noticed while scrolling in a number box that they aren't the same when the dividend is negative.  In the source for [div], I see this before doing the division:
if (n1 < 0) n1 -= (n2-1);

I feel like I'm missing something obvious.  Why does [div] behave this way? 



More information about the Pd-list mailing list