Designing Your Model: Model-Code Correspondence : Fixed-Point Variable Support

Fixed-Point Variable Support

This section describes the MicroC Code Generator fixed-point support for integer arithmetic, which scales integer variables so that they can represent non-integral values (fractions). This feature allows you to perform calculations involving fractions without requiring floating-point support from the target.

The Rational Statemate MicroC Code Generator supports fixed-point arithmetic at the model level, as well as in the generated code.