WorksheetFunction.Floor Method
Excel Developer Reference |
Rounds number down, toward zero, to the nearest multiple of significance.
Syntax
expression.Floor(Arg1, Arg2)
expression A variable that represents a WorksheetFunction object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Arg1 | Required | Double | Number - the numeric value you want to round. |
Arg2 | Required | Double | Significance - the multiple to which you want to round. |
Return Value
Double
Remarks
- If either argument is nonnumeric, FLOOR returns the #VALUE! error value.
- If number and significance have different signs, FLOOR returns the #NUM! error value.
- Regardless of the sign of number, a value is rounded down when adjusted away from zero. If number is an exact multiple of significance, no rounding occurs.
See Also