Hi,
If you are using GP 2013 R2, you need to use the User Defined Function named RW_ConvertToWordsAndNumbers()
David Musgrave modified these functions to include exactly what you are looking for.
Below are the functions pertaining to converting numbers to words. I posted an article about all of the functions he changed on my blog here:
dynamicsconfessions.blogspot.com/.../gp-2013-r2-updates-to-report-writer.html
RW_ConvertToWordsAndNumbers()
• Added new mode to support full conversion of dollars and cents to words. The Mode (third) parameter now supports the following three values:
0 = Whole Number in words, Parts in numbers
1 = Whole Number in numbers, Parts in numbers
2 = Whole Number in words, Parts in words *NEW
RW_ConvertToWordsAndNumbersParse()
• Added new mode to support full conversion of dollars and cents to words. The Mode (third) parameter now supports the following three values:
0 = Whole Number in words, Parts in numbers
1 = Whole Number in numbers, Parts in numbers
2 = Whole Number in words, Parts in words *NEW Here are some examples of the RW_ConvertToWordsAndNumbers() function in action:
•RW_ConvertToWordsAndNumbers( 1234.56 "" 0 )
One Thousand Two Hundred Thirty Four Dollars and 56 Cents
•RW_ConvertToWordsAndNumbers( 1234.56 "" 1 ) returns
** 1,234 Dollars and 56 Cents
•RW_ConvertToWordsAndNumbers( 1234.56 "" 2 ) returns
One Thousand Two Hundred Thirty Four Dollars and Fifty Six Cents (the above function is incredible; it’s one we’ve wanted for years!)