FormatDollars
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | FormatDollars | |
| Function Description: | Formats a number into a dollar string with comma separators and a $ suffix. | |
| File Location: | cmm.stringFunctions.lua | |
| Syntax: | CMM.FormatDollars( number n ) | |
| Return Value: | string | |
| Parameters: | Name | Description |
| n | The numeric value to format into a dollar string. | |
| Example: | CMM.FormatDollars(1234567) | |
| Example Description: | Returns "$1,234,567" when given 1234567. | |
| Related Functions: | ||
| Notes: | ||