max integer value

lee wang's icon

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)

Max Patch
Copy patch and select New From Clipboard in Max.

here is my abstraction:

best,
l.

rpieket's icon

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.

rpieket's icon

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

-Ron.