MATLAB Function Reference Previous page   Next Page

Largest possible value of specified integer type



v = intmax is the largest positive value that can be represented in MATLAB with a 32-bit integer. Any value larger than the value returned by intmax saturates to the intmax value when cast to a 32-bit integer.

v = intmax('classname') is the largest positive value in the integer class classname. Valid values for the string classname are


intmax('int32') is the same as intmax with no arguments.


Find the maximum value for a 64-bit signed integer:

Convert this value to a 32-bit signed integer:

Compare the result with the default value returned by intmax:

See Also

intmin, realmax, realmin, int8, uint8, isa, class

Previous page  intersect intmin Next page

© 1994-2005 The MathWorks, Inc.