Conversion Operator


The Conversion operator allows to convert scalar elements of numerical or enumeration type to limitInt or wrapInt types. The function of the convert operator is determined either via the button used to create the operator or via the Conversion Type submenu in the operator's context menu.
The Use Limiters option in the operator's context menu is used to determine if the limits for the converted type are user-defined or not.
The Conversion option in the operator's context menu opens the Conversion Attributes dialog window, where you can enter min and max values and – for wrapInt – type for the conversion result.
- The first example shows a cont variable converted to limitInt; min and max of the conversion are set manually.
- The second example shows a cont variable with integer implementation converted to limitInt; min and max of the conversion are set automatically.
- The third example shows a cont variable converted to wrapInt; min and max of the conversion are set manually.
- The fourth example shows a cont variable converted to wrapInt; min and max of the conversion are set automatically.
See also
Scalar Types – Limited Integer
Scalar Types – Wrap-Around Integer
Conversion Attributes Dialog Window
Context Menu – Operators and Control Flow Elements: Conversion Operator