Main Content

Fixed-Point Data

Efficient approximations for non-floating-point values

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.


Fixed-Point Data in Stateflow Charts

Define fixed-point data in Stateflow® charts.

Fixed-Point Operations in Stateflow Charts

Use integer arithmetic to approximate real numbers.

Supported Operations for Fixed-Point Data

Perform mathematical computations on fixed-point operands.

Handle Integer Overflow for Chart Data

Choose saturation or wrapping behavior for arithmetic overflows.

Featured Examples