Edit

Share via


WorksheetFunction.MRound(Object, Object) Method

Definition

Returns a number rounded to the desired multiple.

public:
 double MRound(System::Object ^ Arg1, System::Object ^ Arg2);
public double MRound (object Arg1, object Arg2);
Public Function MRound (Arg1 As Object, Arg2 As Object) As Double

Parameters

Arg1
Object

Number - the value to round.

Arg2
Object

Multiple - the multiple to which you want to round number.

Returns

Remarks

MRound rounds up, away from zero, if the remainder of dividing number by multiple is greater than or equal to half the value of multiple.

Applies to