[PD] Vanilla method for symbol -> float

Antoine Rousseau antoine at metalu.net
Sat Oct 12 10:30:14 CEST 2019


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 at 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 at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20191012/e6a83b2c/attachment.html>


More information about the Pd-list mailing list