Mitech Preloader

NumberPhrase

User Reference

NumberPhrase

NumberPhrase is used to convert a number to words, in several different languages.



Command structure:

«NumberPhrase(Area,'','leave')»


Examples of usage:

«NumberPhrase(Area,"en-us","ToUpper")»

Suppose a data element with name ‘Area’ has a value 1234:
This would yield “ONE THOUSAND TWO HUNDRED THIRTY-FOUR”




Note:

Languages supported are ‘en’ (US English, the default), ‘fr’ (French), ‘de’ (German), ‘en-uk’ , ‘af’ (Afrikaans) and ‘en-za’ (English, South Africa, which renders 1.10 as ‘One Comma One Zero’).

The ‘ToUpper’ parameter is obvious, and could also be ‘ToLower’, or ‘Leave’ (which is the default).

The command NumberToWords is equivalent to NumberPhrase in all respects.




Related articles:

Convert currency into words