[PD] Displaying as two digits

Martin Peach martin.peach at sympatico.ca
Wed Apr 7 14:59:26 CEST 2010


Frank Barknecht wrote:
> Internally Pd uses the "g" type a lot to format numbers.

..which is why Pd's floats often have less precision than float: A 
full-precision float is printed with the 'g' specifier when a patch is 
saved, then read back in with the reduced precision, so something like 
1234567 will end up as 1.23e+6, or 1230000, the next time the patch is 
opened.
Martin





More information about the Pd-list mailing list