Fixed-point arithmetic refers to how signed or unsigned binary words are operated on. The simplicity of fixed-point arithmetic functions such as addition and subtraction allows for cost-effective hardware implementations.
Addition, subtraction, multiplication, casts, modulo, and two’s complement arithmetic.
Rules for Arithmetic Operations
Rules that the Simulink® software follows when arithmetic operations are performed on inputs and parameters.
Bit-shift operations for integers.
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.
Addition of n-bit numbers in the Simulink software.
Multiplication of n-bit binary numbers with m-bit binary numbers in the Simulink software.
Integer division for fixed-point data types in the Simulink software.
fimath Properties Usage for Fixed-Point Arithmetic
Fixed-point arithmetic using fimath
objects to control the
results.