Jump to content

FormatDollars

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (FormatDollars – created via PowerShell script (2025-11-11T21:12:46Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
nThe numeric value to format into a dollar string.
Example: CMM.FormatDollars(1234567)
Example Description: Returns "$1,234,567" when given 1234567.
Related Functions:
Notes: