This function converts a number that represents an amount to a text that is that amount in words. The function rounds the number parameter to two decimal positions.
The function amount_in_words( ) supports both local currencies and Euros, depending on the current ITP Output Language as set in the Administrator of ITP/Server under Environments. You can modify the behavior of the function through the function euro( ) or with the setting ITPEURO.
The spelling of the euro and cent in the respective languages are based on the formal EC guidelines used in EC Legislative acts.
amount_in_words ( input_number )
The result of this function is of type TEXT: the input_number taken as an amount, in words.
This function has one parameter:
The function amount_in_words cannot convert the amount from local currencies to euros or vice versa, only the name of the currency changes.
Example
@( amount_in_words( 1000.23 ) )
(* Result: one thousand pounds and twenty-three pence *)
@( amount_in_words( -1000.23 ) )
(* Result: one thousand pounds and twenty-three pence negative *)
The result of this function depends on the setting of the ITP OutputLanguage. If you encounter unexpected results check this setting in the ITP/Server Administrator.
This function is supported for number values limited to MAXINT(2^31 == 2,147,483,648). Above 2,147,483,648 the result of the function is undefined (although for some languages the result might be correct). You are recommended not to use this function for values over 2,147,483,648.