format_nr function

Format a number with a specified number of decimal places, thousand sep, and a symbol