Rounds a number up, away from zero.
Name | Type | Description |
arg1 | number | Is any real number that you want rounded up. |
arg2 | number | Is the number of digits to which you want to round. Negative rounds to the left of the decimal point; zero or omitted, to the nearest integer. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.ROUNDUP(3.456, 0)); builder.SaveFile("xlsx", "ROUNDUP.xlsx"); builder.CloseFile();