VarR8Round function

Rounds a variant of type double to the specified number of decimal places.

Syntax


HRESULT VarR8Round(
  _In_   double dblIn,
  _In_   int cDecimals,
  _Out_  double *pdblResult
);

Parameters

dblIn [in]

The variant.

cDecimals [in]

The number of decimal places.

pdblResult [out]

The result.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft