[PD] division with remainder
Mathieu Bouchard
matju at artengine.ca
Mon May 15 20:28:11 CEST 2006
On Mon, 15 May 2006, Hans-Christoph Steiner wrote:
> I think that [mod] should probably do whatever ANSI C or ISO math stuff
> does, which I think it currently is doing. Most programming languages
> follow these conventions, so its a good idea for Pd to as well.
[%] follows C convention. [mod] does not, mostly because [%] is often not
what is wanted: for example, both Python and Ruby define % to be like Pd's
[mod] and not like Pd's [%].
> But the object you propose does sound handy, so maybe it should be a separate
> object, like [floatmod].
It would also be nice if it supported that its right-hand value is a
float. This would be useful for normalizing angles that are in radians.
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
More information about the Pd-list
mailing list