WorksheetFunction.Floor_Precise(Double, Object) Method

Definition

Rounds the specified number to the nearest multiple of significance.

public double Floor_Precise (double Arg1, object Arg2);
Public Function Floor_Precise (Arg1 As Double, Optional Arg2 As Object) As Double

Parameters

Arg1
Double

Number - the numeric value you want to round.

Arg2
Object

Significance - the multiple to which you want to round.

Returns

Remarks

Depending on the sign of the number and significance arguments, the Floor_Precise method rounds either away from or towards zero.

-/-Rounds away from zero.
+/+Rounds toward zero.
-/+Rounds away from zero.
+/-Rounds toward zero.

If either argument is nonnumeric, the Floor_Precise method generates an error.

If number is an exact multiple of significance, no rounding occurs.

Applies to