|
NumToWord()
Converts a number to a text string made up of
words.
Syntax
NumToWord(<nNumber>, [<nDigits>]) -->
cWords
Arguments
<nNumber> --> is the number to convert
to a formatted string of words. The number must be in the range 0 -
999,999.99
<nDigits> --> Is an optional value that
returns a word based on the digit position in the number.
Returns
A character string.
Description
NumToWord() converts a number to a string of
words. This is useful in cheque printing and similar
applications.
You may specify the digit position to only return
a single word based on the digit position of the number. Do not
count the decimal place.
Examples
NumToWord(500.00)
*Result --> "FIVE
HUNDRED DOLLARS ONLY"
NumToWord(417.25,
1)
*Result: -->
"FIVE"
NumToWord(417.25,2)
*Result: -->
"TWO"
NumToWord(417.25,3)
*Result: -->
"SEVEN"
NumToWord(417.25,4)
*Result: -->
"ONE"
NumToWord(417.25,5)
*Result: -->
"FOUR"
NumToWord(417.25,6)
*Result: -->
"Nil"
____________________________
Related Topics
Business
Function List
|