amountInWords()
This function requires MetaCard and returns a number in words. Decimals are rounded to 2 places.
Syntax
amountInWords (tAmount, [tMajor], [tMinor])
| tAmount | : | Evaluates to a number from 0 to 999,999,999,999,999,999,999,999,999,999,999.99 |
| [tMajor] | : | Optional - Defaults to "Dollar" if not specified |
| [tMinor] | : | Optional - Defaults to "Cents" if not specified |
Examples
put amountInWords (1,020.56) into fld 1
get amountInWords (587946,"Pound","pence")
get amountInWords (fld 1,"Franc","Centimes")
if "error" is in it then answer it
else put it into fld 2
Eror handling
Not a number : Returns "error: not a number"
Number exceeds limit: Returns "error: too big"