帮助中心帮助中心
将 fi 对象转换为有符号 32 位整数
fi
c = int32(a)
c = int32(a) 根据 fi 对象 a 的真实值,返回其内置 int32 值。如有必要,数据将舍入到最邻近的值,并对其进行饱和处理以适合 int32 类型。
a
int32
此示例显示 fi 对象的 int32 值。
a = fi([-pi 0.1 pi],1,32); c = int32(a) c = -3 0 3
在 R2006a 之前推出
storedInteger | int8 | int16 | int64 | uint8 | uint16 | uint32 | uint64
storedInteger
int8
int16
int64
uint8
uint16
uint32
uint64
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office