Converts a number to text, using a currency format $#.##.
Name | Type | Description |
arg1 | number | string | A number, a reference to a cell containing a number, or a formula that returns a number. |
arg2 | number | A number of digits to the right of the decimal point. The number is rounded as necessary. If it is omitted, the function will assume it to be 2. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.DOLLAR(98.9997, 3)); builder.SaveFile("xlsx", "DOLLAR.xlsx"); builder.CloseFile();