Data type conversion and casting refers to changing from one data type to another. Fixed-Point Designer™ lets you create and optimize data types that meet numerical accuracy requirements and target hardware constraints.
Conversions of data types of parameters and signals in Simulink® simulations.
Example highlighting how the data types are converted and arithmetic operations are performed on inputs and parameters in the Simulink software.
Addition, subtraction, multiplication, casts, modulo, and two’s complement arithmetic.
Example based on the
fxpdemo_dbl2fix model, which
highlights many of the key features of the Fixed-Point Designer software.
Three parts of the port display for fixed-point signals: the data type, the number of bits, and the scaling.
Comparison of ANSI C integer data type ranges, conversions, and exception handling
with those of
Information on casting