format function

Printing currency values or percentages