Fixed-Point Variable Support

Fixed-Point Variable Support

 

This section describes fixed-point support for integer arithmetic, which scales integer variables so they can represent non-integral values (fractions). This functionality enables you to perform calculations involving fractions without the need of special floating-point support from the target.

MicroC supports fixed-point arithmetic in the model level, through the Dictionary and the Check Model tools, as well as in the generated code.