[PD] Displaying as two digits

Roman Haefeli reduzierer at yahoo.de
Wed Apr 7 15:30:08 CEST 2010

On Wed, 2010-04-07 at 08:59 -0400, Martin Peach wrote:
> 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.

Now you made it worse than it really is. Actually, it will end up as:
1.23457e+06 or 1234570. It's true though, the reformatting truncates
significant digits. Actually, the only way I can think of to store
32bit-float numbers with full precision in Pd is to write to
32-bit-float soundfiles.


Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

More information about the Pd-list mailing list