[PD] separate digits object

2007-07-03 Thread glerm soares

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?

thanks

glerm
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] separate digits object

2007-07-03 Thread Claude Heiland-Allen
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@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list