VarRound function

Rounds a variant to the specified number of decimal places.

Syntax


HRESULT VarRound(
  _In_  LPVARIANT pvarIn,
  _In_  int       cDecimals,
  _Out_ LPVARIANT pvarResult
);

Parameters

pvarIn [in]

The variant.

cDecimals [in]

The number of decimal places.

pvarResult [out]

The result variant.

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

 

 

Show: