Converting fixed-point variables

About this task

IBM® Rational® Rhapsody® provides the following macros for converting to/from fixed-point variables:

These macros can be used with the macros that require fixed-point variables as arguments, for example:

FXP_ASSIGN_EXT(myFixedPointVar, FXP_16Bit_T, 4, DOUBLE2FXP(3.5, 1), 1);

The arguments provided represent:


Feedback