max integer value

Feb 6, 2012 at 12:21pm

max integer value

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. –


Feb 6, 2012 at 1:25pm

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.


Feb 6, 2012 at 2:26pm

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



You must be logged in to reply to this topic.