NumberFormat() is a powerful function, allowing flexible and sophisticated numeric formatting. But for quick and simple number formatting you may want to use one of the shortcut functions like DecimalFormat() which formats numbers with two decimal places and thousands separators, or DollarFormat() which is the same as DecimalFormat() but with a preceding dollar sign and parentheses if the value is negative. (Applies to: ColdFusion All)
Leave a Reply