Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>comma() - insert commas in a string of numbers</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     comma() - insert commas in a string of numbers
  Usage:    <string> = comma(str(<integer>))
  Params:   str(<integer>) - an integer converted to a string
  Returns:  a string equal to the str() of the integer with commas
            placed at every third digit

 ---------------------------------- Example ---------------------------------

                 ? comma(str(234897.89))
                 * prints 234,897.89

                 mem1 = str(recno())
                 @ 0,60 say "There are "+comma(mem1)+;
                 " records"

  Note:     The returned string also has leading spaces removed.
            Remember to always send the STR() of a number, not the
            actual number itself.


See Also: soundex() trimpunct()

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