formatting strings in html reports

formatting strings in html reports

I couldn't find any built in function to format stings for currnecy

For example

a = 2.1;

I want to display "$ 2.10"


anything built in already for things like this? Has anyone wrong a function to do this already?