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

ygreq's icon

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: https://cycling74.com/forums/what-do-you-do-when-number-is-too-big-to-process . 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

dangdong27's icon

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

seejayjames's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

ygreq's icon

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

Thank you so much, fellaz!
:D