指定整数类型的最大值
v = Intmax.
v = intmax('classname')
v = Intmax.
是最大的正值,可以在matlab中代表®具有32位整数的软件。任何大于返回的值的值Intmax.
饱和到Intmax.
转换为32位整数时的值。
v = intmax('classname')
是整数类中最大的正值班级名称
。字符串的有效值班级名称
是
|
|
|
|
|
|
|
|
Intmax('int32')
是相同的Intmax.
没有争论。
找到64位符号整数的最大值:
v = intmax('int64')v = 9223372036854775807
将此值转换为32位符号整数:
x = int32(v)x = 2147483647
将结果与返回返回的默认值进行比较Intmax.
:
isequal(x,intmax)ans = 1