Text Formatting

Outside of a table, if I enter a numeric formula, how do I apply a format mask to it so that instead of a result of, for example, 1023, I see $1,023.00