# Documentation/Calc Functions/DOLLAR

TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Donate

## Function name:

DOLLAR

## Category:

Text

## Summary:

Converts a number to an amount in the currency format, rounded to a specified decimal place. In the Value field enter the number to be converted to currency. Optionally, you may enter the number of decimal places in the Decimals field. If no value is specified, all numbers in currency format will be displayed with two decimal places.

You set the currency format in your system settings.

## Syntax:

DOLLAR(**Value**; **Decimals**)

## Returns:

## Arguments:

**Value** is a number, a reference to a cell containing a number, or a formula which returns a number.

**Decimals** is the optional number of decimal places.

## Additional details:

## Examples:

=DOLLAR(255) returns $255.00.

=DOLLAR(367.456;2) returns $367.46. Use the decimal separator that corresponds to the current locale setting.