WorksheetFunction.Floor_Precise Method

Rounds the specified number to the nearest multiple of significance.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Floor_Precise ( _
    Arg1 As Double, _
    Arg2 As Object _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Object
Dim returnValue As Double

returnValue = instance.Floor_Precise(Arg1, _
    Arg2)
double Floor_Precise(
    double Arg1,
    Object Arg2
)

Parameters

  • Arg1
    Type: System.Double

    Number - the numeric value you want to round.

  • Arg2
    Type: System.Object

    Significance - the multiple to which you want to round.

Return Value

Type: System.Double

Remarks

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

Sign (Arg1/Arg2)

Rounding

-/-

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.

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace