[PD] why does PD round numbers? (in tables, in messageboxes, etc)

katja katjavetter at gmail.com
Tue Apr 10 14:20:33 CEST 2012

On Tue, Apr 10, 2012 at 12:50 PM, Krzysztof Czaja <czaja at chopin.edu.pl> wrote:

> for the record: Max abandoned binary patch storage format quite
> some time ago.  They tend to use JSON now for pretty much
> everything, and it works well.
> Declarative format is more flexible and easier to extend than
> procedural, explicitly stack-based representation.  Moreover, with
> JSON come tools and standards.  One example: ECMA Script 5 defines
> very precisely, how to stringify numbers...

Good info. The ECMA standard describes the number type as a double,
and a number value as chosen from the set of representable numbers in
this type, with a rounding to nearest method as in IEEE 754. See
section 8.5 of:


Then in section 9 the conversion rules are presented in greatest
detail, with 'number to string' in section 9.3.1. Krzysztof, do you
think that MaxMsp uses the same rules for printing numbers in boxes?
If so, it could be used as a guideline for Pd as well.


More information about the Pd-list mailing list