VarCyRound function

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

Syntax


HRESULT VarCyRound(
  _In_  CY   cyIn,
  _In_  int  cDecimals,
  _Out_ LPCY pcyResult
);

Parameters

cyIn [in]

The variant to round.

cDecimals [in]

The number of currency decimals.

pcyResult [out]

The resulting 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: