What do you do when number is too big to process? Part II

Dec 11, 2011 at 3:24pm

What do you do when number is too big to process? Part II

Hi everyone,

About a year ago I asked you folks about what to do if you wanted to do some calculations with really big numbers. It was related to something specific, meaning date and time. You can follow the discutions here: http://cycling74.com/forums/topic.php?id=29840 . And the discutions went towards that direction (date and time).

This time around I am asking you what should one do if he wanted to extract, for example 530 out of a big number like 500676798709076558759

[sprintf %s %s] is good for combining 2 symbols. Does it do the reverse? I was thinking of treating the big number as a symbol and splitting it. Afterwards I could just extract 530 from the second part of the big number. And then I would recombine it.

Thank you all,
ygr

#60330
Dec 11, 2011 at 6:08pm

Perhaps the string related objects (“strpbrk” and “strstr” in particular)from Jasch objects could be of some help regarding your issue.

#217140
Dec 11, 2011 at 11:10pm

If you’re fine using it as a symbol, you can work with [regexp]:

– Pasted Max Patch, click to expand. –
#217141
Dec 11, 2011 at 11:38pm

Both solutions look pretty neat! I will check them properly later on.

Thank you so much, fellaz!
:D

#217142

You must be logged in to reply to this topic.