Edit

Share via


WorksheetFunction.RoundDown(Double, Double) Method

Definition

Rounds a number down, toward zero.

public:
 double RoundDown(double Arg1, double Arg2);
public double RoundDown (double Arg1, double Arg2);
Public Function RoundDown (Arg1 As Double, Arg2 As Double) As Double

Parameters

Arg1
Double

Number - any real number that you want rounded down.

Arg2
Double

Num_digits - the number of digits to which you want to round number.

Returns

Remarks

RoundDown behaves like Round(Double, Double), except that it always rounds a number down.

If num_digits is greater than 0 (zero), then number is rounded down to the specified number of decimal places.

If num_digits is 0, then number is rounded down to the nearest integer.

If num_digits is less than 0, then number is rounded down to the left of the decimal point.

Applies to