[PD] separate digits object
Claude Heiland-Allen
claudiusmaximus at goto10.org
Wed Jul 4 06:29:16 CEST 2007
glerm soares wrote:
> I'm looking for some object that could separate the digits of a number like
>
> for example
>
> [123/
> |
> |
> [separate_object]
> | | |
> | | |
> [1/ [2/ [3/
>
>
> as separeted floats...
>
> what's the better solution solution to that?
[div 10] and [mod 10] can do this job. [div 11] and [mod 11] can do the
job if you want numbers in base 11 instead of base 10, too.
Something like:
123
[t f f]
[div 10] [mod 10]
[t f f]
[div 10] [mod 10]
[t f f]
[div 10] [mod 10]
(wires omitted in this "ascii diagram", hope it makes some sense)
Claude
--
http://claudiusmaximus.goto10.org
More information about the Pd-list
mailing list