VarR8Round function (oleauto.h)

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

[in] dblIn

The variant.

[in] cDecimals

The number of decimal places.

[out] pdblResult

The result.

Return value

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

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll