What do you do when number is too big to process? Part II
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,
Perhaps the string related objects ("strpbrk" and "strstr" in particular)from Jasch objects could be of some help regarding your issue.
If you’re fine using it as a symbol, you can work with [regexp]:
----------begin_max5_patcher---------- 568.3ocwVFsaaBCEF9ZpTeGNxWmgrg.F1c64XYZh.ml3NvlgMZIqZu6yXBoI qMgzERaj.Gc7A6e+wuOlmt+NOxR0FTSfOCeE77dxFwyEqKh2P.ORU1l7xLsK QRtppBkFxrccZvMFWGRkAAyZDjXNp0YMage1ZioAiBpx9ABBCjA5sUKUk6e7 GTRiLqBcCwWZDYO2krsRHKQiadYCQEEtTUKe7Sr46ystA0VUkYDJ42avbS+h hEm3SmALJsqY3F7sClBUqYXNnGJJs32NQwB72GuNyjuVHWcxYHHIzOgRorD6 +cyj6I+y8200Zalc8b1hXokmxUk83tTnsbUCaUsfFQ3AgYZnaHY5vTHcdGeB YwNLQ49oVLQSuZLIweYE6KoTciPZ.6EtBazSCPXSIPh2YXb1m962HTHLXyz. .5I..aL.zmqYaM1u5Ijm2CdF3D06VR84clE1MiPFnDllRRomfPAucBMaTJM2 QIVpiRgQ97nqlPUcUtWguYVD7JrfOV04XWMgfX9kTbdp8XIGYw5aXI2D6Uis FzlZXg8Wwj3xNUk4n+OW1gWmkYCG10+hyRvvt8kgStqaO4VPhnzXdLOMgSSo 73nnDdT5BxjXPCdmJmMfsv.WCe99C+dUCW+XQJExW7sYtAuqi+glZUaS9fXF JUCGrWp.0FgzsA7vrXGm0ZQQAJO5HsJQQsxdL5NkbtWxWr3rEIA1nZi9gosQ 4F+3Ev6jzr65gfwjV5GB0BtDpEd0RqKfs4u.QOK0u. -----------end_max5_patcher-----------
Both solutions look pretty neat! I will check them properly later on.
Thank you so much, fellaz!