VarCyRound Function

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

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

cyIn

[in] The variant of type currency.

cDecimals

[in] The number of currency decimals.

pcyResult

[out] Points to the result currency variant.

Show:
© 2014 Microsoft