The DOLLAR function returns with text from a number value using currency format, with the decimals rounded to the number of specified places.
Note that numbers stored as text are a common cause of spreadsheet errors, because, functions like SUM, MIN, and MAX etc. ignore them.
number – The number to convert.
[decimals] – The number of digits to the right or left of the decimal point.