| 9 January 2002 |
NumSep() |
| Author | W.M. Hinsch (New Mexico Mark) |
| Action | Inserts thousand separators in a number. |
| Syntax | NumSep (String [,Character]) |
| Parameters | String (Required / String) the number (in string format) to which commas should be inserted. Character (Optional / String) the optional character to insert. If not specified, the character specified by the client's regional settings in the Control Panel will be used (typically a comma for US/Canada and a period for European numbers). |
| Remarks | If someone felt ambitious, they might try rewriting this function to leave existing separators in place transparently. Original Comma() UDF code provided by WM Hinsch. Enhanced to read default thousands separator character from registry (Control Panel / Regional Settings) by ScriptLogic Corp. |
| Returns | A string with the separation character inserted in the 3rd, 6th, 9th, ... Nth places of String. |
| Dependencies | None. |
| Examples | |
| Source | |