数据类型转换和强制转换
从一种数据类型到另一种数据类型的转换
使您能够创建和优化满足数值精确度要求和目标硬件约束的数据类型。数据类型转换和强制转换指的是从一种数据类型转换为另一种数据类型。Fixed-Point Designer™ 使您能够创建和优化满足数值精确度要求和目标硬件约束的数据类型。
主题
- Parameter and Signal Conversions
Conversions of data types of parameters and signals in Simulink® simulations.
- Conversions and Arithmetic Operations
Example highlighting how the data types are converted and arithmetic operations are performed on inputs and parameters in the Simulink software.
- 定点算术
加法、减法、乘法、转换、模和 2 的补码算术。
- Cast from Doubles to Fixed Point
Simulate a continuous signal with fixed-point data types using Fixed-Point Designer to adjust scaling, rounding, and overflow handling.
- 显示端口数据类型
定点信号端口显示包含三个部分:数据类型、位数和定标。
- fi Objects and C Integer Data Types
Comparison of ANSI C integer data type ranges, conversions, and exception handling with those of
fiobjects. - Cast fi Objects
Information on casting
fiobjects.

