This function formats a number.
Number to be formatted
Number of decimal places to display
Optional
Default value
Formatted number string
This function formats a number.