This function converts a number to a text representing the number in words.
number_in_words ( input_number )
The result of this function is of type TEXT, input_number will be formatted as TEXT.
This function has one parameter:
The input number is rounded to zero decimals before it is transformed. The round rule used is that when the first decimal is less than 5 the number is rounded down, when the first decimal is five or higher the number is rounded up. Refer to the examples below for more information.
#BEGIN
#
@( number_in_words ( -1234.895 ) )
@( number_in_words ( 1234.495 ) )
#
END#
Result:
minus one thousand two hundred thirty five.
one thousand two hundred and thirty-four
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 mode, the #BEGIN makes the switch to ITP mode.