다음을 통해 공유


WorksheetFunction.Floor Method (Excel)

Rounds number down, toward zero, to the nearest multiple of significance.

중요

This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality.

For more information about the new function, see the Floor_Precise method.

Syntax

.Floor(Arg1, Arg2)

A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

필수

Double

Number - the numeric value you want to round.

Arg2

필수

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.

참고 항목

개념

WorksheetFunction Object

WorksheetFunction Object Members