Formatting Currency

Is anyone aware of a component or PilotScript to format a property representing a currency? I'd like to format it like this: 

\$1,123,456.12

So with dollar sign and comma separator. 

Thanks a lot - Ton