Help >
Function to Convert Numeric Strings to Word Strings
Version
7.11
Function to Convert Numeric Strings to Word Strings
Function to Convert Numeric Strings to Word Strings
_words(string)
_ewords(string)
The words functions are used in check writing applications to get the words for any number. The number must be a string before operating on it with one of the words functions.
For example, suppose you have calculated the value 123.45 in the numeric variable %nn.
set/tl %xx=%nn
set %xx=_ewords(%xx)
The first SET converts the content of the numeric variable %nn to a string in %xx, triming off any leading or trailing blanks in the process. The second SET now converts the string 123.45 into One Hundred Twenty Three and 45/100.
In English speaking countries there is no difference between _WORDS and
_EWORDS. The idea is that _EWORDS will always give the words in English, but _WORDS is tuned to the country code and will give the words in the local language. So far we support German and Spanish.
Copyright © 2019 , WhamTech, Inc. All rights reserved. This
document is provided for information purposes only and the contents hereof are
subject to change without notice. Names may be
trademarks of their respective owners.