Function Reference: Volume 2 (F-O) - The MathWorks - #851

/ 1568


catalogue search
P. 851
P. 852
P. 853
P. 854
P. 855
P. 856
P. 857
P. 858
P. 859
P. 860
P. 861
P. 862
P. 863
P. 864
P. 865
P. 866
P. 867
P. 868
P. 869
P. 870
P. 871
P. 872
P. 873
P. 874
P. 875
P. 876
P. 877
P. 878
P. 879
P. 880
P. 881
P. 882
P. 883
P. 884
P. 885
P. 886
P. 887
P. 888
P. 889
P. 890
P. 891
P. 892
P. 893
P. 894
P. 895
P. 896
P. 897
P. 898
P. 899
P. 900


See other catalogues for The MathWorks

Text version of the page
intmax
Purpose Syntax
Description
Largest value of specified integer type v = intmax
v = intmax('classname')
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 valuewhencasttoa32-bit integer.
v = intmax(' classname') is the largest positive value in the integer class classname. Valid values for the string classname are
'int8'
'int16'
'int32'
'int64'
'uint8'
'uint16'
'uint32'
' uint64'
intmax(' int32') is the same as intmax with no arguments.
Find the maximum value for a 64-bit signed integer:
v = intmax('int64') v =
9223372036854775807
Convert this value to a 32-bit signed integer:
x = int32(v) x= 2147483647
Compare the result with the default value returned by intmax: isequal(x, intmax)
Examples
ans
1
See Also
intmin, realmax, realmin, int8, uint8, isa,class
2-1795

pageCatalog pdf di En 2012-06-22-01