ROUNDDOWN

function ROUNDDOWN(arg1: number = null, arg2: number = null): number | string | boolean

Description

Rounds a number down, towards zero.

Parameters

arg1numberdefault: null

Is any real number that you want rounded down.

arg2numberdefault: null

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.

Returns

number | string | boolean

Try It

var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.ROUNDDOWN(3.456, 0));

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).