Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
If this is a totally useless and illegal value, then nothing should ever generate it. By definition, anything that can be interrupted as a number, should be a float. The Pd manual 2.1.2 says "Anything that is not a valid number is considered a symbol" ("symbol" here meaning symbolic atom, not symbol message). That means that the converse should be true too: "anything that is a valid number should be considered a float".
The problem is: [makefilename %d] generates a *symbol* whose content data is a numeric value. This means, the "1234" in your student's example patch actually is *not* a float, but a symbol atom! So converting this back to a known type after trimming will generate a symbol, not a float. See attached patch which has a small change to do a double conversion: one to the Land of Oz and then back into Pd land.
Ciao