Forums > MaxMSP

max integer value

February 6, 2012 | 12:21 pm

Hello max experts,
I made a simple counter abstraction and i want to know, which is the maximum integer value.
And it would good to know, what is happening, if i add 1 to this value.
(does it jumps to 0 or to -max integer)

here is my abstraction:

– Pasted Max Patch, click to expand. –

best,
l.


February 6, 2012 | 1:25 pm

2,147,483,647, which is (2^31)-1

It appears that Max 6.0.3 uses 32 bit integers. Your example would take 68 years to wrap around.

-Ron.


February 6, 2012 | 2:26 pm

BTW I found out by simply replacing the "+ 1" in your example patch with "* 2".

-Ron.


Viewing 3 posts - 1 through 3 (of 3 total)