Using the Conversion Operator
- In the Basic Blocks palette or toolbar, click the
Conversion Limit or
Conversion WrapAround button. Place the operator in the drawing area.
You can use the options in the Conversion Type context menu of a conversion block to change its type.
To determine the conversion result, do the following:
Right-click the conversion operator ad select Use Limits from the context menu to enable user-defined min. and max. of the result.
If Use Limits is not selected, the limits of the conversion results are determined automatically.
Right-click the conversion operator ad select Conversion from the context menu.
The Conversion Attributes dialog window opens.
In the Conversion Attributes dialog window, select a type for the conversion result.
This is only possible for a conversion to Wrap-around Integer type.
In the Min and Max fields, enter lower and upper limit for the interval of the conversion result.
This is only possible if Use Limits is selected in the operator's context menu.
- Connect the operator input to a scalar element of numerical or enumeration type.
- Connect the operator output to a suitable operator or element.
Some examples are given in Examples: Conversion Operator.
See also
Converting sdisc/udisc to limitInt/wrapInt