Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - tomoney(<expn>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson