TOMONEY(<expN>)
Converts a numeric amount to words of currency.
Returns <expC> in the format "... DOLLAR(S) and <n> CENT(S)".
Useful in check-writing programs.
Range is zero to 9,999,999,999,999,999.99
Converts negative numbers to positive.
TOMONEY( 123.45 )
returns "ONE HUNDRED TWENTY-THREE DOLLARS and 45 CENTS"
TOMONEY( 123456.00 )
returns "ONE HUNDRED TWENTY-THREE THOUSAND,
FOUR HUNDRED FIFTY-SIX DOLLARS and NO CENTS"
Hazard
Length of character string returned varies, and can
exceed the space you allotted if given too large a number.
Placed in the Public Domain by Tom Rettig Assoc.