Hi Joao,

you can now use a simple [f] to convert a symbol to float, e.g:

[5(
|
[symbol 3.$1(       // generate "3.5" symbol
|
[f]
|
[print]

prints 3.5 (i.e a float)

But the most powerful related tool is [fudiparse]:

[51 46 53(     // list of chars '3' '.' '5'
|
[fudiparse]
|
[print]

also prints the float 3.5.




Le sam. 12 oct. 2019 à 09:01, João Pais <jmmmpais@gmail.com> a écrit :
Hi list,

I was trying something without succes, and couldn't find any
documentation for it as well.


I wanted to split the symbol 2/4 to separate the numbers on both sides
of the / . No problem using [list fromsymbol] and [list tosymbol] in
doing that. But, afterwards I can't find a way of turning the symbol
back to a float, except using an external. Is there any special hack
somewhere for this?


Best,

JOao




_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list