[PD] separate digits object

Thomas O Fredericks tof at danslchamp.org
Wed Jul 4 14:40:40 CEST 2007


You can also use convert/int2digits from the SVN version of the pdmtl
abstractions

Tom

On 7/4/07, Claude Heiland-Allen <claudiusmaximus at goto10.org> wrote:
> 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
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>


-- 
thomas ouellet fredericks, tof at danslchamp.org, montreal, canada




More information about the Pd-list mailing list