[PD] expr alternative

Mathieu Bouchard matju at artengine.ca
Tue Oct 25 21:47:35 CEST 2011


Le 2011-10-25 à 12:38:00, Jonathan Wilkes a écrit :

> It's worth noting that the current [expr] is both "Max-centric"-- 
> because numbers written as integers imply integer math-- and 
> incompatible with Max-- because in object boxes Pd strips the decimal 
> from "1." which is a common idiom in Max to force float math.

Pd also turns «1.0» (and such) into «1».

However, Pd never strips those things if they get parsed as symbols.

thus [expr 1.0/2] gives 0.5 whereas [expr 1.0 /2] will become [expr 1 /2] 
which will give 0.

  ______________________________________________________________________
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC


More information about the Pd-list mailing list