View/Edit #6161:group_number

Switch to edit mode.

Name(s): group_number
1:  "Copied from #29 (string utilities):group_number by James (#6397)"
2:  n = floatstr(args[1], 0)
3:  comma = length(args) > 1 ? args[2] | ","
4:  result = ""
5:  while ((len = length(n)) > 3)
6:    result = comma + n[len - 2..len] + result
7:    n = n[1..len - 3]
8:  endwhile
9:  return "$" + result
10: "Last modified by James (#6397) on Sat Jun 27 23:24:39 1998 EDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: James (#6397)

You are not logged in.

[home | help | who | search | setup | code]