Fixed-point numbers use an integer-based encoding scheme to approximate real numbers. They provide an efficient alternative for numeric computation that does not require floating-point support in underlying system hardware. Minimize the loss of precision in computations by adjusting the encoding scheme.
Define fixed-point data in Stateflow® charts.
Use integer arithmetic to approximate real numbers.
Perform mathematical computations on fixed-point operands.
Choose saturation or wrapping behavior for arithmetic overflows.