This function removes decimals up to the number indicated by the second parameter from a number.
truncate ( number_to_be_truncated; number_of_decimals_left )
The result of this function is of type NUMBER: the truncated number.
The function has two parameters:
Example
@( truncate( 1223.535; 0 ) )
Result: 1,223.00
Explanation: the decimals are removed but because of the default format of ITP for NUMBERS, i.e., two decimal positions, two decimal positions are displayed, both zero.
Note that the construction @ ( ) around the function means that the result of the function is displayed in the text. This construction must be used in a text part of a model document. The switch from ITP mode to text mode in a model document is made with the # characters. An ITP model document starts in text model, the #BEGIN makes the switch to ITP mode.