Roman Häfeli wrote :
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.
How about using [makefilename %.8g] ? Together with the current bugs in atom_string, those symbols will be saved as full-precision floats that Pd will understand.
%.6g gives 6 decimals of precision = max 19.93 bits %.7g gives 7 decimals of precision = max 23.25 bits %.8g gives 8 decimals of precision = max 26.57 bits
to get full precision you need %.8g, because in float32, you have 24 bits of precision, which is why 16777215 is an exact float32 number, for example, while 16777217 is not.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
On Thu, 2010-04-08 at 21:21 -0400, Mathieu Bouchard wrote:
Roman Häfeli wrote :
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.
How about using [makefilename %.8g] ?
Neat! Thanks for the posting this idea.
Roman
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Do you know why with [makefilename %03d] the symbol is correct in a symbol box and it is not correct in the console ? With Pd-ext 0.41.4. ++
Jack
Le vendredi 09 avril 2010 à 09:39 +0200, Roman Haefeli a écrit :
On Thu, 2010-04-08 at 21:21 -0400, Mathieu Bouchard wrote:
Roman Häfeli wrote :
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.
How about using [makefilename %.8g] ?
Neat! Thanks for the posting this idea.
Roman
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Fri, 9 Apr 2010, Jack wrote:
Do you know why with [makefilename %03d] the symbol is correct in a symbol box and it is not correct in the console ? With Pd-ext 0.41.4.
It's a bug in GridFlow. It is fixed with the upcoming GridFlow 9.9 or the current SVN.
GridFlow overrides [print] so that pd's [print] doesn't crash while trying to print a grid atom.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801