On 2020-10-01 08:44, jayrope wrote:
Thank you Hans and Matt,
Hans, nice workaround, I'll surely stick to this. Thank you.
i don't think this is a workaround. it's rather the ideal solution, as it stays within the domain of numbers, and doesn't require re-parsing the string (which is a costly operation).
Matt, regarding banging the message: this unfortunately leads to the following object, for instance a float, reporting float: no method for '12' (i. e. no method for '<value>').
use a symbol, not a selector (and make sure you are using Pd>=0.48)
matt's [set $1$2, bang(
construct is really only useful if you want
to send the data to a messagebox (but why would you want to do that?)
this should just workâ˘:
[3.1 415( | [pack 0 0] | [symbol $1$2( | [float] | |3.1415\
but again, this is much more expensive than the solution proposed by hans.
gfmadrs IOhannes