Hi all - this section 9.3.1 describes how to convert strings to numbers - but isn't the real problem how Pd converts numbers to strings?
I think the ideal solution when the number of characters isn't an issue is to specify that whatever prints out should be a string that, when scanned using scanf("%f", ...) (or scanf("%lf", ...)) returned the exact 32-bit number. I'm not 100% sure this is possible, since there might be 32 bit values that scanf can't ever return, but I bet there's a way to get really really close :) Miller On Wed, Apr 11, 2012 at 09:35:14PM +0200, Krzysztof Czaja wrote: > On 04/10/2012 02:20 PM, katja wrote: > ... > >http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf > > > >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. > > not really. The old, six decimals after point limit still remains all > over Max6. But if you force something more sane into Pd, they'll > likely follow... > > Krzysztof > > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list