VALUE

VALUE(arg1) → { number }

Converts a text string that represents a number to a number.

Parameters:

Name Type Description
arg1 string

The text enclosed in quotation marks or a reference to a cell containing the text which will be converted to a number.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.VALUE("$3.50"));
builder.SaveFile("xlsx", "VALUE.xlsx");
builder.CloseFile();

Resulting document